# Question: b in r create a vector of numbers from one...

###### Question details

b) In R, Create a vector of numbers from one to ten called num_vec. Use the sum function to calculate the sum of this vector using both the sum function directly applied to the vector, and the magrittr pipe command to “pipe” the function to the vector.

Please show the code in R.

Thanks!