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

  1. Find the sum of w.
  2. Find sum of w squared.
  3. How many components are there in vector w?

#11. Given the vector a: a <- c(35, 27, 54, 13, 11, 49, 6, 1, 20)

  1. Sort the values in ascending order.
  2. 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:

  1. 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).
  2. Save the dataframe to the object name "participants".

Note: use R studio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!