Question: #10. Given w = 7, 8, 9, 10, 11, 12 Find the sum of w. Find sum of w squared. How many components are there
#10. Given w = 7, 8, 9, 10, 11, 12
- Find the sum of w.
- Find sum of w squared.
- How many components are there in vector w?
#11. Given the vector a: a <- c(35, 27, 54, 13, 11, 49, 6, 1, 20)
- Sort the values in ascending order.
- Sort the values in decreasing order.
#12. Use the rnorm() function to generate n=40 normally distributed values with a mu of 100 and sigma of 20.
#13. Use R-code for the following:
- Create a dataframe for the following data: Name (Vanessa, Gabriel, Lucas), Age (24, 29, 31), City (Sydney, New York, Las Vegas), Country (Australia, USA, USA).
- Save the dataframe to the object name "participants".
Note: use R studio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
