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 UNIVERSITY OF SOUTH CAROLINA

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

MGSC 291 EXAM 1 UNIVERSITY OF SOUTH CAROLINA

Institution
MGSC 291
Module
MGSC 291









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

Written for

Institution
MGSC 291
Module
MGSC 291

Document information

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

Subjects

Content preview

MGSC 291 EXAM 1 UNIVERSITY OF SOUTH
CAROLINA

putting in a dataset - Answers -data<-
c(81,85,93,93,99,76,75,84,78,84,81,82,89,81,96,82,74,70,84,86,80,70,131,75,88,102,1
15,89,82,79,106)

length(data) - Answers -tells you how may entries are in your vector

sort(data) - Answers -puts data smallest to largest

summary(data) - Answers -returns the five number summary and the sample mean

mean(data)
sd(data)
sum(data) - Answers -sample mean
sample standard deviation
adds all the elements of the vector

seq(1,100,1)
seq(2,100,2) - Answers -tells r to create the sequence of numbers from 1 to 100 by 1
(1,2,3...)
1:100 does the same thing
(2,4,6...100)

data<-read.table(file.choose(),header=TRUE)
read.cvs - Answers -calls this dataset into r and you can name it whatever you want

getwd() - Answers -creates the current working directory and calls in your data too

dim(data) - Answers -checks dimensions of data

data - Answers -type the name of the data to see it

data[1:5] - Answers -calls in the first five rows of the dataset if you are working with a
large dataset

head(data) - Answers -shows the first few rows

data[,1:2] - Answers -all rows for columns 1 and 2

data[1:5,1:2] - Answers -first five rows and first two columns

str(data) - Answers -structure of the object

, View(data) - Answers -(capital V) puts your data in a viewable popup window

data$shoes - Answers -calls in the column called shoes

attach(data) - Answers -attaches data so you can work with it and don't have to keep
calling it in

(if you attach several datasets that have the same column names r will be confused so
you have to detach before attaching again)

data<-subset(data,Type=="WT") - Answers -you can pick out certain rows/columns and
you can enter more == and "" in order to be more specific

hist(data) - Answers -give you a histogram

hist(data,breaks=c(60,70,80,90)) - Answers -creates a sequence and breaks them

xlab="percents of ..." - Answers -x axis name

ylab="Frequency" - Answers -y axis name

main="..." - Answers -title of the graph

boxplot(data) - Answers -gives a box plot

boxplot(...~...) - Answers -gives side by side boxplots

boxplot(Oil~Type,names=c("WIld Type","Mutated")) - Answers -creates your own label
for the boxplot

plot(X,Y) - Answers -create a scatterplot

X1 <- c(8,5,14,13,29)
X2 <- c(13,8,6,18,4) - Answers -X1 is first line with the numbers you want
X2...

dbinom(j,n,p) - Answers -gives P(Y = j) discrete binomial probability

pbinom(J,n,p) - Answers -gives P(<=J) = P(Y = 0) + P(Y = 1) + ... + P(Y = J) exp
binomial prob

dpois(j,lambda) - Answers -gives P(X=j) poisson discrete

ppois(J,lambda) - Answers -gives P(X<=J) poisson exponential

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
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions