Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 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

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

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

$14.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
Follow You need to be logged in order to follow users or courses
Sold
2109
Member since
4 year
Number of followers
1446
Documents
54208
Last sold
3 days ago

3.8

358 reviews

5
177
4
61
3
48
2
17
1
55

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions