Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 1 3 . Create a vector ' y ' containing ' ( 2 , 2 , 2 , 2 , 4 , 4 ,

613. Create a vector 'y' containing '(2,2,2,2,4,4,4,4,8,8,8,8)' using the 'rep ()' function. You might need to check the help file for ' rep()' by typing '? rep' in the console to see all of the options that 'rep()' will accept. In particular, look at the optional argument 'each='.
a. Find the mean of vector 'y' using the function 'mean()'.
b. Use google search to find the function in 'R' that computes the variance of a vector and find the variance of 'y'.
cdots{r}
# Insert your code for this question after this line
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago