Question: Use the c( )function in R to create a vector of any 7 numbers you choose between100and100. Assign the result to anobject that you name.
Use the c( )function in R to create a vector of any 7 numbers you choose between100and100. Assign the result to anobject that you name.
Use the appropriate functions in R to compute the mean, variance, standard deviation,minimum, and maximum of your vector.
Create a new vector object with 10 numbers that are equally spaced apart, starting with 26and ending with 86. Assign the result to an object you name. Print the object to the screen.
Create a new vector object that contains the words Red, White, and Blue, repeated threetimes. Assign the result to an object you name. Print the object to the screen.
Next you will create four vectors populated with pseudorandom numbers.(a) Choose a 4, 5, or 6 digit number on your own. Set the seed to that number.
(b) Create a vector namedAand a vector namedB. Each of these vectors should contain1000 random numbers generated from a uniform distribution on the interval[0;1].
(c) Create a vector namedXand a vector namedY. Each of these vectors should contain1000 random numbers generated from a normal distribution with mean 0 and standard deviation 1.
(d) CombineA,B,X, andYinto a single data frame and give it a name.
(e) Construct a scatterplot ofAandB. Give it a clear title. Print it
(f) Construct a scatterplot ofXandY. Give it a clear title. Print it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
