Question: Create a vector in R that contains both numeric and logical elements. Check the structure of the vector using the ) function. What is the
Create a vector in R that contains both numeric and logical elements. Check
the structure of the vector using the function. What is the data type of the
vector? What kind of coercion does it occur? Compute the sum and the mean of the
vector. Explain how deals with the logical elements when you compute the sum and
the mean. Attach R code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
