Professional Documents
Culture Documents
Worksheet 1 - Solution
Worksheet 1 - Solution
Solutions
2023-01-11
Solutions
75 51 72 82 46 68 51 53 65 53 65 86 68 57 73 78 70
70 68 54 55 76 99 70 80 60 78 79 81 65 80 64 66 93
1. Store this dataset as a vector called testScores. (Do not worry if the code runs off the page here.)
testScores <- c(75, 51, 72, 82, 46, 68, 51, 53, 65, 53, 65, 86, 68, 57, 73, 78, 70, 70, 68, 54, 55, 76,
mean(testScores)
## [1] 69.14706
hist(testScores)
1
Histogram of testScores
10
8
Frequency
6
4
2
0
40 50 60 70 80 90 100
testScores