Open yesezra opened 11 months ago
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.
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!