1. Engineering
  2. Computer Science
  3. b in r create a vector of numbers from one...

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!

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution