This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
## Loading required package: NLP
## Loading required package: RColorBrewer
##
## Attaching package: 'ggplot2'
## The following object is masked from 'package:NLP':
##
## annotate
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
## Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
## EOF within quoted string
## V1
## 1 Tweet Text
## 2 Recordando Sequoia National Park.
## 3 In August I visited Sequoia National Park, to see the biggest trees on the planet. I highly recommend visiting that place, its astoundingly mesmerising. The giant sequoia is the largest in the world and has an immense trunk with a very slight taper.\nJust posted a photo @ Sequoia National Park\n🌲 Sequoia National Park See the full episode on the 7-Ahead you tube channel! #SequoiaNationalPark #experiencegodscreations #7peopleinanrv #thebestisyettocome #7ahead #investinyourchild #investedparents #nationalparks #kydinsider #summertoremember #s2r22\nOctober 31, 2014 Mariposa Grove of Yosemite National Park, CA #mariposagrove #trees #redwood #sequoia #nature #yosemite #yosemitenationalpark #christyborgman #lawomanphoto #onthisday\nJust a couple minions hiking in Sequoia National Park RT @OkwahoOutfitter: A #HalloweenHike in @SequoiaKingsNPS today was in order! #HappyHalloween #SequoiaNationalPark #HikeCalifornia #HikingCulture #LittleBaldyTrail\nA RC-135 River Joint is flying by the Sequoia National Park, callsign SNOOP42.\nPotwisha Campground - Sequoia National Park\nSequoia National Park 📸\nSequoia national park\nSequoia & Kings Canyon National Park Map (2021) (English and Marathi Edition) ER3XYW2\nIn her happy place! @Y_Strahovski camping in Sequoia National Park. Bears and spiders oh my!\nDont care for warmongers. the biggest tree in the world at Sequoia National Park.
## 4 At Sequoia National Park and what kind of size queen sees the General Sherman - the “largest tree in the world” and thinks - “that’s it? \U{01f9d0}”
## 5 Redwood National Park is much from only a nationwide park. It is house to a number of the tallest bushes on this planet – redwoods (scientifically often known as sequoia sempervirens). Nature
## 6 Sequoia National Park
## Warning in tm_map.SimpleCorpus(TextDoc, toSpace, "/"): transformation drops
## documents
## Warning in tm_map.SimpleCorpus(TextDoc, toSpace, "@"): transformation drops
## documents
## Warning in tm_map.SimpleCorpus(TextDoc, toSpace, "\\|"): transformation drops
## documents
## Warning in tm_map.SimpleCorpus(TextDoc, tolower): transformation drops documents
## Warning in tm_map.SimpleCorpus(TextDoc, removeNumbers): transformation drops
## documents
## Warning in tm_map.SimpleCorpus(TextDoc, removeWords, stopwords("english")):
## transformation drops documents
## Warning in tm_map.SimpleCorpus(TextDoc, removeWords, c("https", "linkhttps", :
## transformation drops documents
## Warning in tm_map.SimpleCorpus(TextDoc, removePunctuation): transformation drops
## documents
## Warning in tm_map.SimpleCorpus(TextDoc, stripWhitespace): transformation drops
## documents
## word freq
## national national 97
## park park 89
## sequoia sequoia 81
## trees trees 14
## giant giant 12
## nature nature 11
## california california 10
## canyon canyon 9
## just just 9
## kings kings 9
## largest largest 8
## photo photo 8
## world world 8
## tree tree 7
## yosemite yosemite 7
## grove grove 6
## redwood redwood 6
## general general 5
## nsequoia nsequoia 5
## posted posted 5
## tallest tallest 5
## tuolumne tuolumne 5
## usa usa 5
## campsite campsite 4
## naturelovers naturelovers 4
## naturephotography naturephotography 4
## see see 4
## campgroundsequoia campgroundsequoia 3
## known known 3
## landscape landscape 3
## lodgepole lodgepole 3
## much much 3
## notified notified 3
## open open 3
## parknsequoia parknsequoia 3
## parks parks 3
## photography photography 3
## photooftheday photooftheday 3
## place place 3
## sempervirens sempervirens 3
## Warning: `spread_()` was deprecated in tidyr 1.2.0.
## ℹ Please use `spread()` instead.
## ℹ The deprecated feature was likely used in the syuzhet package.
## Please report the issue to the authors.
## Warning in RColorBrewer::brewer.pal(N, "Set2"): n too large, allowed maximum for palette Set2 is 8
## Returning the palette you asked for with that many colors
## Warning in RColorBrewer::brewer.pal(N, "Set2"): n too large, allowed maximum for palette Set2 is 8
## Returning the palette you asked for with that many colors
References: Text Mining with R: A Tidy Approach. https://www.tidytextmining.com/.
Learning Social Media Analytics with R, Oreilly - Free e-book (online access available at https: //library.csub.edu/).
Course notes, Zhenning Jimmy Xu, https://bookdown.org/utjimmyx/marketing_research/