Advertisement
Guest User

hw1

a guest
Sep 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.46 KB | None | 0 0
  1. setwd("/Users/mariiaturchina/mathstat_data")
  2. data <- scan("Orings.txt", what = "numeric")
  3. class(data) <- "numeric"
  4. summary(data)
  5. # 1a - have the summary stuff
  6.  
  7. boxplot(data)
  8. # 1b - make a boxplot
  9.  
  10. new_data <- data[data != min(data)]
  11. summary(new_data)
  12. # 1c - summary without the smallest
  13.  
  14. qqnorm(new_data)
  15. qqline(new_data)
  16. # 1d - plot the normal qq
  17.  
  18. c_data <- (new_data - 32)
  19. c_data <- (c_data * (5/9))
  20. summary(c_data)
  21. # 1e - get summary of C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement