100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

MGSC 291 EXAM 1 QUESTIONS & ANSWERS

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
12-01-2026
Written in
2025/2026

MGSC 291 EXAM 1 QUESTIONS & ANSWERS

Institution
MGSC 291
Course
MGSC 291









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
MGSC 291
Course
MGSC 291

Document information

Uploaded on
January 12, 2026
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

MGSC 291 EXAM 1 QUESTIONS & ANSWERS


R code: + - Answers -addition

R code: - - Answers -subtraction

R code: * - Answers -multiplication

R code: / - Answers -division

R code: ^ - Answers -exponent

R code: # - Answers -note (anything after this symbol will be ignored by R)

R code: <- - Answers -defines an object

R code: c - Answers -combine function (creates a vector of numbers. numbers can
either be separated by commas, or by a colon (1,2,3,4) or 1:4)

R code: seq() - Answers -sequence function (creates a vector with the sequence (from,
to, by) ex: seq(1,10,0.1) creates a vector from one to 10 counting by 0.1)

R code: help(functionName) - Answers -help function (opens a web browser to display
a help file)

R code: NA - Answers -missing value

R code: mean () - Answers -average

R code: na.rm=T - Answers -removes all missing values (from the given data set. in R
all missing values are labeled as NA)

R code: sqrt() - Answers -square root

R code: log() - Answers -natural logarithm

R code: exp(a) - Answers -e^a

R code: sd() - Answers -sample standard deviation

R code: var() - Answers -sample variance

R code: length() - Answers -length of vector (including NAs)

, R code: dim() - Answers -dimension of data frame - rows, columns

R code: factor(x) - Answers -makes R recognize x as categorical

R code: cbind() - Answers -bind (combine) objects by columns

R code: rbind() - Answers -bind objects by rows

R code: sort() - Answers -sort from smallest to largest

R code: order() - Answers -sort a data frame based on specified columns(s)

R code: round(x,a) - Answers -round x to a decimal places

R code: rep(x,n) - Answers -repeat x n times

R code: which() - Answers -returns the position number where argument is true

R code: ifelse(cond,a,b) - Answers -if condition is met, return a, otherwise return b

R code: sample() - Answers -sample from a dataset

R code: paste() - Answers -concatenate text

R code: object() or ls() - Answers -returns a list of all stored objects

R code: == - Answers -equal to

R code: != - Answers -not equal to

R code: < - Answers -less than

R code: <= - Answers -less than or equal to

R code: > - Answers -greater than

R code: >= - Answers -greater than or equal to

R code: | - Answers -or

R code: & - Answers -and

R code: a%in%b - Answers -is "a" contained in "b"

R code: %*% - Answers -matrix multiplication

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA YALA UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
2014
Member since
3 year
Number of followers
1447
Documents
48855
Last sold
3 hours ago

3.8

345 reviews

5
172
4
61
3
44
2
16
1
52

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions