October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps:
> data(mtcars)
> range(mtcars$mpg)
Output:
[1] 10.4 33.9
> length(mtcars$mpg)
Output:
[1] 32
> mean(mtcars$mpg)
Output:
[1] 20.09062
> median(mtcars$mpg)
Output:
[1] 19.2
> sd(mtcars$mpg)
Output:
[1] 6.026948
> var(mtcars$mpg)
Output:
[1] 36.3241
Read now
Unlock full access