Use the function factor()
to create a new variable gender
based on the variable Gender
within the data frame NH_18_69
.
Adjust the order of the factor levels, so that the boxplot for “male” is on the left, and the boxplot for “female” is on the right.