You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We assign "Female" first when setting the levels: levels(factor_survey_vector) <- c("Female", "Male")
but "male" is the first factor: male <- factor_survey_vector[1]
This is because the first element of survey_vector is "M" Could this behavior be made clearer somehow?
The text was updated successfully, but these errors were encountered:
https://campus.datacamp.com/courses/free-introduction-to-r/chapter-4-factors-4?ex=6
We assign "Female" first when setting the levels:
levels(factor_survey_vector) <- c("Female", "Male")
but "male" is the first factor:
male <- factor_survey_vector[1]
This is because the first element of
survey_vector
is "M" Could this behavior be made clearer somehow?The text was updated successfully, but these errors were encountered: