PSTAT 10 Midterm 1 2025/2026 Exam
Questions and Answers 100%
Guaranteed Success | Already Rated A+
multiply function - 🧠 ANSWER ✔✔*
exponent function - 🧠 ANSWER ✔✔^
divide function - 🧠 ANSWER ✔✔/
vectors - 🧠 ANSWER ✔✔are variables with an ordered set of values
square root function - 🧠 ANSWER ✔✔sqrt()
can a vector be named with a digit followed by a digit? - 🧠 ANSWER ✔✔no
can a vector be named by a digit followed by a period? - 🧠 ANSWER ✔✔no
are vector names case sensitive? - 🧠 ANSWER ✔✔yes
code to return the sequence of numbers 2 3 4 5 - 🧠 ANSWER ✔✔>seq(2,5)
or
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
1
,>2:5
result of
>(x<-seq(2,5)) - 🧠 ANSWER ✔✔[1] 2 3 4 5
the extra parentheses give the instruction to print to screen
function to result in a list of current objects - 🧠 ANSWER ✔✔objects()
>x<-"Hello"
>y<-"World"
>W<-c(x,y)
what's the result? - 🧠 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 indicate to R it is the data set of interest -
🧠 ANSWER ✔✔data()
function to view a data set in top left window - 🧠 ANSWER ✔✔View()
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
2
, symbol used to access a specific variable in a data set - 🧠 ANSWER ✔✔$
example: you want to access 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 the data type of z
function to determine the length of a vector - 🧠 ANSWER ✔✔>length(z)
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
3
Questions and Answers 100%
Guaranteed Success | Already Rated A+
multiply function - 🧠 ANSWER ✔✔*
exponent function - 🧠 ANSWER ✔✔^
divide function - 🧠 ANSWER ✔✔/
vectors - 🧠 ANSWER ✔✔are variables with an ordered set of values
square root function - 🧠 ANSWER ✔✔sqrt()
can a vector be named with a digit followed by a digit? - 🧠 ANSWER ✔✔no
can a vector be named by a digit followed by a period? - 🧠 ANSWER ✔✔no
are vector names case sensitive? - 🧠 ANSWER ✔✔yes
code to return the sequence of numbers 2 3 4 5 - 🧠 ANSWER ✔✔>seq(2,5)
or
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
1
,>2:5
result of
>(x<-seq(2,5)) - 🧠 ANSWER ✔✔[1] 2 3 4 5
the extra parentheses give the instruction to print to screen
function to result in a list of current objects - 🧠 ANSWER ✔✔objects()
>x<-"Hello"
>y<-"World"
>W<-c(x,y)
what's the result? - 🧠 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 indicate to R it is the data set of interest -
🧠 ANSWER ✔✔data()
function to view a data set in top left window - 🧠 ANSWER ✔✔View()
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
2
, symbol used to access a specific variable in a data set - 🧠 ANSWER ✔✔$
example: you want to access 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 the data type of z
function to determine the length of a vector - 🧠 ANSWER ✔✔>length(z)
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
3