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

PSTAT 10 FINAL UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
13-05-2025
Written in
2024/2025

PSTAT 10 FINAL UPDATED ACTUAL Exam Questions and CORRECT Answers x<-7:10 - CORRECT ANSWER 7 8 9 10 2^(0:10) - CORRECT ANSWER rm(x) - CORRECT ANSWER q() - CORRECT ANSWER x<-c(3,7,9) - CORRECT ANSWER 3 7 9 1) x<-c("hello","world") - creates a vector 7 through - 2 to the power of all values in a vector from 0 to 10 - removes object x - quit Rstudio - c is combine funct

Show more Read less
Institution
PSTAT
Module
PSTAT









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

Written for

Institution
PSTAT
Module
PSTAT

Document information

Uploaded on
May 13, 2025
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

PSTAT 10 FINAL UPDATED ACTUAL
Exam Questions and CORRECT Answers
x<-7:10 - CORRECT ANSWER - creates a vector 7 through
7 8 9 10


2^(0:10) - CORRECT ANSWER - 2 to the power of all values in a vector from 0 to 10



rm(x) - CORRECT ANSWER - removes object x



q() - CORRECT ANSWER - quit Rstudio



x<-c(3,7,9) - CORRECT ANSWER - c is combine function
379


1) x<-c("hello","world")

2) paste("hello", "world") - CORRECT ANSWER - 1) "hello" "world"
2 " hello world"


date() - CORRECT ANSWER - gives today's time and date


?paste

help(paste) - CORRECT ANSWER - help function



getwd() - CORRECT ANSWER - get work directory



setwd() - CORRECT ANSWER - set working directory

, data("CO2")

View(CO2) - CORRECT ANSWER - indicates data set of interest
view CO2 in top left pane
(CAPITAL V)


CO2$uptake - CORRECT ANSWER - only takes data from uptake column in CO2 data



5 basic object classes in R - CORRECT ANSWER - logical(T,F)
integer(1,2,3,4)
numeric(2.2 3.355, 3,pi)
complex(i, 3i, 4i)
character("A", "APPLE")


Data structures - CORRECT ANSWER - vector
matrix
data frame
factors
tables


Vector Syntax - CORRECT ANSWER - vector(class of object, length)



typeof(z) - CORRECT ANSWER - gives class of vector
"character", "numeric"


length(x) - CORRECT ANSWER - gives vector length

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.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1072
Member since
1 year
Number of followers
102
Documents
68976
Last sold
2 days ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

170 reviews

5
73
4
30
3
45
2
8
1
14

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