df <- read.csv("student-mat.csv", sep = ";")
head(df)
Now when I run summary(df)
Why don't I get the proper descriptive summary for categorical variables / factors (e.g. A count for the two genders under the "sex" factor).
Background Information:
Operating System: macOS High Sierra Version 10.13.6
RStudio Version 1.3.959
You need to define your variables as a factor. E.g df$sex <- as.factor(df$sex)
Let me know if it worked :)