Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 534 Bytes

File metadata and controls

12 lines (11 loc) · 534 Bytes

R Exercise 1

  1. Assign a variable x the value of 3.
  2. Assign a variable y the value of 4.
  3. Check the value of x (print it to the screen).
  4. Check the value of X. What happens? Why?
  5. How do you check if x is exactly equal to y?
  6. Assign the value of 3.0 to a variable z
  7. Does R think that x equals z? What do you think is going on?
  8. How might you express the number 100 in log base 10 in R?
  9. Make a new variable a that is the difference between x and y.
  10. Check the value of a.