Skip to content

Instantly share code, notes, and snippets.

@EmZhu
Created August 16, 2016 00:24
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 EmZhu/8e77a11bcf33bad86e4c7cf2af7b6560 to your computer and use it in GitHub Desktop.
Save EmZhu/8e77a11bcf33bad86e4c7cf2af7b6560 to your computer and use it in GitHub Desktop.
#================================ average length of name
average_length = filtered_national %>% group_by(Year) %>% summarise(Length = mean(nchar(unique(as.character(Name)))))
ggplot(average_length, aes(Year, Length)) +
geom_step() +
ylim(4,8) +
ggtitle('Average length of baby names')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment