SyntaxFix
Write A Post
Hire A Developer
Questions
In case I just want to know how many unique factor levels exist in the data, I use:
length(unique(df$factorcolumn))