Created
July 15, 2019 06:59
-
-
Save PietrH/01af64a8eb3cc8a7b0e88bd4a692d86f to your computer and use it in GitHub Desktop.
Frequency table of character length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
#we want to produce a frequency table of the length (nchar) of a column 'column' of our dataframe 'dataset' | |
mutate(dataset,nchar=nchar(column)) %>% count(nchar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment