[1] 5
[1] 26
[1] 2
[1] 26
[1] 11.4
[1] 5 2 26
[1] 57
Cut and paste the following vector into your assignment and then use code to print the requested values related to the vector.
numbers <- c(5, 2, 26, 8, 16)
numbers
vector (using the length
function)numbers
vector (using []
)numbers
vector (using the min
function)numbers
vector (using the max
function)numbers
vector (using the mean
function)numbers
vector (using []
)numbers
vector (using the sum
function)[1] 5
[1] 26
[1] 2
[1] 26
[1] 11.4
[1] 5 2 26
[1] 57