Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# total number of posts (DataRockie since 2015)
nrow(page)
# average like, share, post
mean(page$likes_count)
mean(page$comments_count)
mean(page$shares_count)
# total like, share, post
sum(page$likes_count)
sum(page$comments_count)
sum(page$shares_count)
# proportion of content
table(page$type)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment