## NOTE! Every line that begins with "#" shows in grey ## These are called "comments" and won't be read by R - they are just for you! # Problem 1 - rats eating food at 90% humidity (vs. mean of 21) humidity <- c(14,18,21,15,18,18,21,18,16,20,17,19,20,17,17,19) true_mean <- 21 # This just displays the t-test result (does not save as a variable) t.test(x=humidity, mu = true_mean) # This will save the result in "result," which you will need to enter to view the t-test info. # Note! This variable (result) could be any name you choose! # The t-test info will be stored in the varibale with the name you choose. result <- t.test(x=humidity, mu = true_mean) result