answers
|\
<- - CORRECT ANSWERS ✔✔"is defined to be"
|\ |\ |\ |\ |\ |\ |\
ls() - CORRECT ANSWERS ✔✔Reminds you of all stored objects
|\ |\ |\ |\ |\ |\ |\ |\ |\
== - CORRECT ANSWERS ✔✔equal to
|\ |\ |\ |\ |\
!= - CORRECT ANSWERS ✔✔not
|\ |\ |\ |\
< - CORRECT ANSWERS ✔✔less than
|\ |\ |\ |\ |\
<= - CORRECT ANSWERS ✔✔less than or equal to
|\ |\ |\ |\ |\ |\ |\ |\
> - CORRECT ANSWERS ✔✔greater than
|\ |\ |\ |\ |\
>= - CORRECT ANSWERS ✔✔greater than or equal to
|\ |\ |\ |\ |\ |\ |\ |\
| - CORRECT ANSWERS ✔✔or
|\ |\ |\ |\
& - CORRECT ANSWERS ✔✔and
|\ |\ |\ |\
, vec4==10 - CORRECT ANSWERS ✔✔Returns: [1] TRUE FALSE |\ |\ |\ |\ |\ |\ |\ |\
FALSE FALSE |\
dataFrameName <- read.csv("filename.csv", strings = T) - |\ |\ |\ |\ |\ |\ |\
CORRECT ANSWERS ✔✔Reads data files into R |\ |\ |\ |\ |\ |\
getwd() - CORRECT ANSWERS ✔✔identifies the current working
|\ |\ |\ |\ |\ |\ |\ |\
directory
dataFrameName$columnName - CORRECT ANSWERS ✔✔ACCESS |\ |\ |\ |\ |\
A COLUMN IN A DATA FRAME
|\ |\ |\ |\ |\
mean(cars$price[cars$fuelsystem == "mpfi"]) - CORRECT |\ |\ |\ |\ |\
ANSWERS ✔✔prints the average prices for cars with multi-point
|\ |\ |\ |\ |\ |\ |\ |\ |\
fuel injection
|\
If R returns with + - CORRECT ANSWERS ✔✔you have likely not
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
closed out aparenthesis or quotation mark.
|\ |\ |\ |\ |\
If the mean function returns "NA" - CORRECT ANSWERS ✔✔there
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
are missing values
|\ |\
mean() - CORRECT ANSWERS ✔✔average
|\ |\ |\ |\
str() - CORRECT ANSWERS ✔✔Examines data structure and type
|\ |\ |\ |\ |\ |\ |\ |\
sum() - CORRECT ANSWERS ✔✔sum
|\ |\ |\ |\