-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R Programming/Looking At Data: summary(plants) output does not match description #526
Comments
In case this is useful for any other beginners finding this issue, I worked around it by coercing the appropriate columns from character vectors into factors: plants$Active_Growth_Period <- as.factor(plants$Active_Growth_Period)
plants$Duration <- as.factor(plants$Duration)
plants$Foliage_Color <- as.factor(plants$Foliage_Color)
plants$Shade_Tolerance <- as.factor(plants$Shade_Tolerance) |
Just adding my voice here: faced the same issue. The Scientific_Name variable is a character, not a factor. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I'm currently going through the R Programming>Looking at Data lesson. I'm in R 4.3.1/RStudio 2023.06.1+524 on macOS 13.5.
After being instructed to try
summary(plants)
, I get the following output:However, the output is described by the lesson as follows:
This does not match the output, which shows Duration as a character, not factor, variable. This also occurs with Active_Growth_Period, which is described as:
Perhaps something changed in the dataset or default output of summary, but this is confusing and I'm not sure how to get output that matches the description. Many thanks for maintaining this valuable project!
The text was updated successfully, but these errors were encountered: