PSTAT 10 UCSB TEST 2025
> print("PSTAT 10") - ANSWER [1] "PSTAT 10"
>7+5*SQRT(9)-2 - ANSWER 20
example of character vector - ANSWER y<- c("one","two","three")
command that extracts the 4th element of x - ANSWER x[4]
barplot(H, xlab, ylab, main, names.arg, col, border)
Then names. arg is. - ANSWER a vector of the names that will appear under
each bar
summary(x) - ANSWER prints the output of min, 1st Qu.,Median, Mean, 3rd
Qu., Max.
given the vector x<-3:7, the length of x is:
- ANSWER 5
rbind(x,y) - ANSWER [,1] [,2] [,3]
x123
y 10 11 12
which of the following is NOT a predefined constant in R? - ANSWER
MONTH.NAME
a tibble:
- ANSWER displays the first 10 rows and all columns on the screen
df1<- data.frame(x=c(1,2,3), y=c(5,NA,8))
na.omit(df1) -
> print("PSTAT 10") - ANSWER [1] "PSTAT 10"
>7+5*SQRT(9)-2 - ANSWER 20
example of character vector - ANSWER y<- c("one","two","three")
command that extracts the 4th element of x - ANSWER x[4]
barplot(H, xlab, ylab, main, names.arg, col, border)
Then names. arg is. - ANSWER a vector of the names that will appear under
each bar
summary(x) - ANSWER prints the output of min, 1st Qu.,Median, Mean, 3rd
Qu., Max.
given the vector x<-3:7, the length of x is:
- ANSWER 5
rbind(x,y) - ANSWER [,1] [,2] [,3]
x123
y 10 11 12
which of the following is NOT a predefined constant in R? - ANSWER
MONTH.NAME
a tibble:
- ANSWER displays the first 10 rows and all columns on the screen
df1<- data.frame(x=c(1,2,3), y=c(5,NA,8))
na.omit(df1) -