• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

Pstat Midterm 1 Test Latest Updated

Document preview thumbnail
Preview 2 out of 10 pages

PSTAT MIDTERM 1 TEST LATEST UPDATED....

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)

Document information

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

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

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
3.8
(334)
Sold
1627
Followers
853
Items
32914
Last sold
3 days 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