#### Question 6 (421/521) Create three vectors of length 100 named `weight` (mean= 81`, sd=`0.26 ; units=Kg), (mean= 1.76, sd=`0.22°; units=m), and sd = 5; units=years) by randomly sampling three...

I need the answer as soon as possible#### Question 6 (421/521)<br>Create three vectors of length 100 named `weight`<br>(mean= 81`, sd=`0.26 ; units=Kg),<br>(mean= 1.76, sd=`0.22°; units=m), and<br>sd = 5; units=years) by randomly sampling three normal<br>distributions using the<br>Generate a fourth vector `gender` with the same length<br>as `height` but by<br>randomly sampling (with replacement) from the following<br>vector `[

Extracted text: #### Question 6 (421/521) Create three vectors of length 100 named `weight` (mean= 81`, sd=`0.26 ; units=Kg), (mean= 1.76, sd=`0.22°; units=m), and sd = 5; units=years) by randomly sampling three normal distributions using the Generate a fourth vector `gender` with the same length as `height` but by randomly sampling (with replacement) from the following vector `["A", "B", "c"]`. `height` age (mean=`25`, stats::rnorm function. {r Your answer to Q6} BEGIN SOLUTION # END SOLUTION | #### Question 7 (421/521) Create a `data.frame` by combining the four vectors created above in **Question 6** as columns. Add a new column (`BMI`) with only `NAS. Save your results in a new object named `Q7`. {r Your answer to Q7} # BEGIN SOLUTION # END SOLUTION R programming, please help with both questions

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here