Question: x and y are given as below, x = { 2 , 5 , 8 , 2 , 3 , 6 , 4 , 9
x and y are given as below,
x y
Provide the R coding to compute the following functions. Note, we will use X and Y to denote the i element of x and y respectively etc.
a Create a data frame that contains the information of x and y Name it as data
Marks
b Find logX for each i Marks
c Find Y for each i Marks
d Find the standard deviation and range of x and y respectively. Marks
e Add the information of gender to the data set, data and name the new data frame as data
gender FFM M F M FFM M
Marks
f Extract the information of x from the data set, data for those are females.
Marks
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
