Question
Show the R-code for the following steps and write the result where asked. a) Create a vector m 1 with numbers from 31 to 61
Show the R-code for the following steps and write the result where asked.
a) Create a vector m1 with numbers from 31 to 61 going up in steps of 2, and a vector m2 with numbers from 95 to 35 going down in steps of 3. (hint: use the seq function). Show only the R-code.
b) Combine vectors m1 and m2 into new vector m3. Show only the R-code. (Hint: Combine does not mean adding. use the c(...) function )
c) Find the 20th, 50th, and 80th percentiles of the vector m3. Show the R-code and the result. (Hint: Use the the quantile function )
d) Display the summary statistics for m3. Show the R-code and the result. (Hint: Use the the summary function )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started