8000 This ungroup is SUPER IMPORTANT · codingbooks/tidy-text-mining@3a6b279 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a6b279

Browse files
committed
This ungroup is SUPER IMPORTANT
1 parent dd513e9 commit 3a6b279

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

07-tweet-archives.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ word_ratios <- tidy_tweets %>%
128128
filter(!str_detect(word, "^@")) %>%
129129
count(word, person) %>%
130130
filter(sum(n) >= 10) %>%
131+
ungroup() %>%
131132
spread(person, n, fill = 0) %>%
132133
mutate_if(is.numeric, funs((. + 1) / sum(. + 1))) %>%
133134
mutate(logratio = log(David / Julia)) %>%

0 commit comments

Comments
 (0)
0