tidytext
## # A tibble: 73,422 × 4## text book linenumber chapter## <chr> <fct> <int> <int>## 1 "SENSE AND SENSIBILITY" Sense & Sensibility 1 0## 2 "" Sense & Sensibility 2 0## 3 "by Jane Austen" Sense & Sensibility 3 0## 4 "" Sense & Sensibility 4 0## 5 "(1811)" Sense & Sensibility 5 0## 6 "" Sense & Sensibility 6 0## 7 "" Sense & Sensibility 7 0## 8 "" Sense & Sensibility 8 0## 9 "" Sense & Sensibility 9 0## 10 "CHAPTER 1" Sense & Sensibility 10 1## # … with 73,412 more rows
(tidy_books <- books %>% unnest_tokens(output = word, input = text))
## # A tibble: 725,055 × 4## book linenumber chapter word ## <fct> <int> <int> <chr> ## 1 Sense & Sensibility 1 0 sense ## 2 Sense & Sensibility 1 0 and ## 3 Sense & Sensibility 1 0 sensibility## 4 Sense & Sensibility 3 0 by ## 5 Sense & Sensibility 3 0 jane ## 6 Sense & Sensibility 3 0 austen ## 7 Sense & Sensibility 5 0 1811 ## 8 Sense & Sensibility 10 1 chapter ## 9 Sense & Sensibility 10 1 1 ## 10 Sense & Sensibility 13 1 the ## # … with 725,045 more rows
tidytext
How often is each U.S. state mentioned in a popular song?
## this hit that ice cold michelle pfeiffer that white gold this one for them hood## girls them good girls straight masterpieces stylin whilen livin it up in the## city got chucks on with saint laurent got kiss myself im so prettyim too hot## hot damn called a police and a fireman im too hot hot damn make a dragon wanna## retire man im too hot hot damn say my name you know who i am im too hot hot damn## am i bad bout that money break it downgirls hit your hallelujah whoo girls hit## your hallelujah whoo girls hit your hallelujah whoo cause uptown funk gon give## it to you cause uptown funk gon give it to you cause uptown funk gon give it## to you saturday night and we in the spot dont believe me just watch come ondont## believe me just watch uhdont believe me just watch dont believe me just watch## dont believe me just watch dont believe me just watch hey hey hey oh meaning## byamandah editor 70s girl group the sequence accused bruno mars and producer## mark ronson of ripping their sound off in uptown funk their song in question is## funk you see all stop wait a minute fill my cup put some liquor in it take a sip## sign a check julio get the stretch ride to harlem hollywood jackson mississippi## if we show up we gon show out smoother than a fresh jar of skippyim too hot## hot damn called a police and a fireman im too hot hot damn make a dragon wanna## retire man im too hot hot damn bitch say my name you know who i am im too hot## hot damn am i bad bout that money break it downgirls hit your hallelujah whoo## girls hit your hallelujah whoo girls hit your hallelujah whoo cause uptown funk## gon give it to you cause uptown funk gon give it to you cause uptown funk gon## give it to you saturday night and we in the spot dont believe me just watch## come ondont believe me just watch uhdont believe me just watch uh dont believe## me just watch uh dont believe me just watch dont believe me just watch hey hey## hey ohbefore we leave lemmi tell yall a lil something uptown funk you up uptown## funk you up uptown funk you up uptown funk you up uh i said uptown funk you up## uptown funk you up uptown funk you up uptown funk you upcome on dance jump on## it if you sexy then flaunt it if you freaky then own it dont brag about it come## show mecome on dance jump on it if you sexy then flaunt it well its saturday## night and we in the spot dont believe me just watch come ondont believe me just## watch uhdont believe me just watch uh dont believe me just watch uh dont believe## me just watch dont believe me just watch hey hey hey ohuptown funk you up uptown## funk you up say what uptown funk you up uptown funk you up uptown funk you up## uptown funk you up say what uptown funk you up uptown funk you up uptown funk## you up uptown funk you up say what uptown funk you up uptown funk you up uptown## funk you up uptown funk you up say what uptown funk you up
10:00
I am happy
get_sentiments("bing")
## # A tibble: 6,786 × 2## word sentiment## <chr> <chr> ## 1 2-faces negative ## 2 abnormal negative ## 3 abolish negative ## 4 abominable negative ## 5 abominably negative ## 6 abominate negative ## 7 abomination negative ## 8 abort negative ## 9 aborted negative ## 10 aborts negative ## # … with 6,776 more rows
get_sentiments("afinn")
## # A tibble: 2,477 × 2## word value## <chr> <dbl>## 1 abandon -2## 2 abandoned -2## 3 abandons -2## 4 abducted -2## 5 abduction -2## 6 abductions -2## 7 abhor -3## 8 abhorred -3## 9 abhorrent -3## 10 abhors -3## # … with 2,467 more rows
janeaustenr
## # A tibble: 1,089,386 × 2## # Groups: book [7]## book word ## <fct> <chr> ## 1 philosophers_stone the ## 2 philosophers_stone boy ## 3 philosophers_stone who ## 4 philosophers_stone lived ## 5 philosophers_stone mr ## 6 philosophers_stone and ## 7 philosophers_stone mrs ## 8 philosophers_stone dursley## 9 philosophers_stone of ## 10 philosophers_stone number ## # … with 1,089,376 more rows
10:00
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |