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

PSTAT MIDTERM 1 TEST LATEST UPDATED

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
17-04-2025
Written in
2024/2025

PSTAT MIDTERM 1 TEST LATEST UPDATED....

Institution
PSTAT
Course
PSTAT









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

Written for

Institution
PSTAT
Course
PSTAT

Document information

Uploaded on
April 17, 2025
Number of pages
10
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

PSTAT MIDTERM 1 TEST LATEST
UPDATED



multiply function - ANSWER *

exponent function - ANSWER ^
divided function - ANSWER /

vectors - ANSWER are variables with an ordered list of values

square root function - ANSWER sqrt()

can a vector be labeled with a digit followed by a digit? - ANSWER no

can a vector be labeled by a digit followed by a period? - ANSWER no

are vector names case sensitive? - ANSWER yes

code to print the sequence of numbers 2 3 4 5 - ANSWER >seq(2,5)
or
>2:5

result of
>(x<-seq(2,5)) - ANSWER [1] 2 3 4 5
the extra parentheses make the instruction send to screen

function to output as a list of current objects - ANSWER objects()

>x<-(("Hello"))

, >y<-(("World"))
>W<-c(x,y)
what's the answer? - ANSWER [1] "Hello" "World"

>x<-(("Hello"))
>y<-(("World"))
>paste(x,y) - ANSWER [1] "Hello World"

>date() - ANSWER returns current date and time

>function to access a data set and inform R that it is the data set of interest -
ANSWER data()

>function to display a data set in top left window - ANSWER View()

>symbol used to access a specific variable in a data set - ANSWER $
example: you would like to see the uptake variable in the data set CO2
>CO2$uptake

5 basic data types in R - ANSWER Logical
Integer
Numeric
Complex
Character

5 basic data structures in R - ANSWER vectors
matrixes
data frames
factors
tables

function to return the data type of a vector - ANSWER >typeof(z)
returns data type of z

function to find the length of a vector - ANSWER >length(z)

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.
luzlinkuz Chamberlain University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1425
Member since
4 year
Number of followers
849
Documents
27588
Last sold
1 day ago

3.7

303 reviews

5
131
4
61
3
54
2
17
1
40

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