Skip to content

Instantly share code, notes, and snippets.

@akshat3096
Created May 12, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshat3096/42aca5120621f807c5a8ce59d0471d66 to your computer and use it in GitHub Desktop.
Save akshat3096/42aca5120621f807c5a8ce59d0471d66 to your computer and use it in GitHub Desktop.
center <- factor(data$center_type)
levels(center)
fct_count(center) #counts the number of categories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment