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

MGSC 291 Exam 1 University of South Carolina exam questions with answers

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
11-11-2025
Written in
2025/2026

MGSC 291 Exam 1 University of South Carolina exam questions with answers











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

Document information

Uploaded on
November 11, 2025
Number of pages
17
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

MGSC 291 Exam 1 University of South
|\ |\ |\ |\ |\ |\ |\




Carolina exam questions with answers |\ |\ |\ |\




putting in a dataset - CORRECT ANSWERS ✔✔data<-
|\ |\ |\ |\ |\ |\ |\


c(81,85,93,93,99,76,75,84,78,84,81,82,89,81,96,82,74,70,84,86,8
0,70,131,75,88,102,115,89,82,79,106)


length(data) - CORRECT ANSWERS ✔✔tells you how may entries
|\ |\ |\ |\ |\ |\ |\ |\ |\


are in your vector
|\ |\ |\




sort(data) - CORRECT ANSWERS ✔✔puts data smallest to largest
|\ |\ |\ |\ |\ |\ |\ |\




summary(data) - CORRECT ANSWERS ✔✔returns the five number |\ |\ |\ |\ |\ |\ |\ |\


summary and the sample mean |\ |\ |\ |\




mean(data)
sd(data)
sum(data) - CORRECT ANSWERS ✔✔sample mean
|\ |\ |\ |\ |\




sample standard deviation
|\ |\




adds all the elements of the vector
|\ |\ |\ |\ |\ |\




seq(1,100,1) |\




seq(2,100,2) - CORRECT 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 - CORRECT ANSWERS ✔✔calls this dataset into r and
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


you can name it whatever you want
|\ |\ |\ |\ |\ |\




getwd() - CORRECT ANSWERS ✔✔creates the current working
|\ |\ |\ |\ |\ |\ |\ |\


directory and calls in your data too
|\ |\ |\ |\ |\ |\




dim(data) - CORRECT ANSWERS ✔✔checks dimensions of data
|\ |\ |\ |\ |\ |\ |\




data - CORRECT ANSWERS ✔✔type the name of the data to see it
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




data[1:5] - CORRECT ANSWERS ✔✔calls in the first five rows of
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


the dataset if you are working with a large dataset
|\ |\ |\ |\ |\ |\ |\ |\ |\




head(data) - CORRECT ANSWERS ✔✔shows the first few rows
|\ |\ |\ |\ |\ |\ |\ |\




data[,1:2] - CORRECT ANSWERS ✔✔all rows for columns 1 and 2
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




data[1:5,1:2] - CORRECT ANSWERS ✔✔first five rows and first two
|\ |\ |\ |\ |\ |\ |\ |\ |\


columns
|\




str(data) - CORRECT ANSWERS ✔✔structure of the object
|\ |\ |\ |\ |\ |\ |\

, View(data) - CORRECT ANSWERS ✔✔(capital V) puts your data in
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


a viewable popup window
|\ |\ |\




data$shoes - CORRECT ANSWERS ✔✔calls in the column called
|\ |\ |\ |\ |\ |\ |\ |\ |\


shoes


attach(data) - CORRECT 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") - CORRECT ANSWERS ✔✔you |\ |\ |\ |\ |\


can pick out certain rows/columns and you can enter more ==
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


and "" in order to be more specific
|\ |\ |\ |\ |\ |\ |\




hist(data) - CORRECT ANSWERS ✔✔give you a histogram
|\ |\ |\ |\ |\ |\ |\




hist(data,breaks=c(60,70,80,90)) - CORRECT ANSWERS |\ |\ |\ |\


✔✔creates a sequence and breaks them |\ |\ |\ |\ |\




xlab="percents of ..." - CORRECT ANSWERS ✔✔x axis name |\ |\ |\ |\ |\ |\ |\ |\




ylab="Frequency" - CORRECT ANSWERS ✔✔y axis name |\ |\ |\ |\ |\ |\

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.
EXAMSTUDYPLUG Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
301
Member since
3 year
Number of followers
107
Documents
17723
Last sold
1 week ago
GRADE BUDDY

Welcome to My Page! Are you looking for high-quality study resources to ace your exams or better understand your coursework? You've come to the right place! I'm passionate about sharing my knowledge and helping students succeed academically. Here, you'll find a wide range of well-organized notes, study guides, and helpful materials across various subjects, including Maths ,nursig, Biology, History, etc.. Each resource is carefully crafted with detailed explanations, clear examples, and relevant key points to help simplify complex concepts. Whether you're preparing for a test, reviewing lectures, or need extra support, my resources are designed to make your learning experience smoother and more effective. Let me be a part of your academic journey, and feel free to reach out if you have any questions or need personalized assistance!

Read more Read less
4.5

230 reviews

5
155
4
50
3
13
2
5
1
7

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