The following packages are required for this practical:
and if you’d like the same results as I have obtained, you can fix the random seed
mean = 5
and sd = 1
- \(N(5, 1)\),1:5
to object x
and verify that the object exists.anscombe
data setx4
, y4
) on the anscombe
data sethgt
and wgt
in the boys
data set from package mice
.boys
data set, hgt
is recorded in centimeters. Use a pipe to transform hgt
in the boys
dataset to height in meters and verify the transformationhgt
, wgt
) two times: once for hgt
in meters and once for hgt
in centimeters. Make the points in the ‘centimeter’ plot red
and in the ‘meter’ plot blue
. End of Practical