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
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

MGSC 291 Exam 1 University of South Carolina Answers

Document preview thumbnail
Preview 2 out of 14 pages

MGSC 291 Exam 1 University of South Carolina Answers putting in a dataset - Answersdata-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,115,89,82,79,106) length(data) - Answerstells you how may entries are in your vector sort(data) - Answersputs data smallest to largest summary(data) - Answersreturns the five number summary and the sample mean mean(data) sd(data) sum(data) - Answerssample mean sample standard deviation adds all the elements of the vector seq(1,100,1) seq(2,100,2) - Answerstells 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-(e(),header=TRUE) - Answerscalls this dataset into r and you can name it whatever you want getwd() - Answerscreates the current working directory and calls in your data too dim(data) - Answerschecks dimensions of data data - Answerstype the name of the data to see it data[1:5] - Answerscalls in the first five rows of the dataset if you are working with a large dataset head(data) - Answersshows the first few rows data[,1:2] - Answersall rows for columns 1 and 2 data[1:5,1:2] - Answersfirst five rows and first two columns str(data) - Answersstructure of the object View(data) - Answers(capital V) puts your data in a viewable popup window data$shoes - Answerscalls in the column called shoes

Content preview

©Themoon EXAM SOLUTIONS
27/11/2024 11:35AM

MGSC 291 Exam 1 University of South
Carolina Answers


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,115,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)

, ©Themoon EXAM SOLUTIONS
27/11/2024 11:35AM


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

Document information

Uploaded on
November 27, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.99

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

Sold
4
Followers
0
Items
511
Last sold
5 months ago


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