`[1] 5`

`[1] 26`

`[1] 2`

`[1] 26`

`[1] 11.4`

`[1] 5 2 26`

`[1] 57`

Exercise

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)`

- The number of items in the
`numbers`

vector (using the`length`

function) - The third item in the
`numbers`

vector (using`[]`

) - The smallest number in the
`numbers`

vector (using the`min`

function) - The largest number in the
`numbers`

vector (using the`max`

function) - The average of the numbers in the
`numbers`

vector (using the`mean`

function) - The first, second and third numbers in the
`numbers`

vector (using`[]`

) - The sum of the values in the
`numbers`

vector (using the`sum`

function)

Output solution

`[1] 5`

`[1] 26`

`[1] 2`

`[1] 26`

`[1] 11.4`

`[1] 5 2 26`

`[1] 57`