Question: R programming, please help with 8 and 9 #### Question 8 (421/521) Generate a variable selection (e.g. if / else statement) that contains the result
R programming, please help with 8 and 9
#### Question 8 (421/521) Generate a variable selection (e.g. if / else statement) that contains the result to the logical query of `age under 20` and above 30. This new vector should be added as a new column to 'Q7' named AgeGroup`. The new dataset should be saved as `Q8. {r Your answer to Q8} # BEGIN SOLUTION # END SOLUTION #### Question 9 (421/521) Calculate the Body Mass Index (BMI; see the equation below) for all people in the Q8" data.frame`. Store the results in the BMIcolumn in the same data.frame`. Save the resulting object as `Q9^. $$ BMI = \frac{Weight_{(kg)}} {Height_{(m)}12} $$ >>> Weight(Kg) BMI - Heightm)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
