josesa@ucr.edu) or Jericho Lawson
(jlaws011@ucr.edu) if you have any questions.satData.csv
provided.In what follows, use relational and logical operators to determine if the statements provided are true or false. You will be evaluated on whether the statement correctly represents the question asked.
speed below the limit of 70 MPH?## [1] TRUE
gender equal to “Male”? Feel free to
modify the value of gender to verify that your logical
statement gives the right outputs.## [1] FALSE
x to the 5-th power between or equal to
0.5 and 1? Feel free to modify the values of x to verify
that your logical statement gives the right outputs.## [1] TRUE
speed
and altitude to verify that your logical statement gives
the right outputs.(Hint: if you want, you can break the problem in several steps)
## [1] FALSE
## [1] TRUE
TRUE if the voltage is outside of the functional
range, and FALSE if it is inside of the functional range. Feel free to
modify the values of voltage to verify that your logical
statement gives the right outputs.## [1] TRUE
A very common type of data are comma separated values
(CSV). They can be imported to R through the function
read.csv().
? to learn more about the function
read.csv().## No documentation for 'read.csv()' in specified packages and libraries:
## you could try '??read.csv()'
In the following chunk, use the function you found to print your current working directory to ensure it is at the directory of this Rmarkdown location.
Use the function read.csv() to import the dataset
satData.csv. This dataset contains the average SAT scores
for all counties in North Carolina. Print the names of the columns, and
the column variable types.
Calculate the mean value of all SAT math scores in the dataset.