R Markdown

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: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
## EOF within quoted string
## 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("main", "the",
## "Bakersfield", : 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
## food               food   10
## ordered         ordered    7
## place             place    5
## potato           potato    5
## salad             salad    5
## sweet             sweet    5
## also               also    4
## bacon             bacon    4
## brussels       brussels    4
## fresh             fresh    4
## just               just    4
## melt               melt    4
## menu               menu    4
## sprouts         sprouts    4
## actually       actually    3
## back               back    3
## bakersfield bakersfield    3
## blue               blue    3
## business       business    3
## came               came    3
## cheese           cheese    3
## chicken         chicken    3
## customer       customer    3
## didnt             didnt    3
## dish               dish    3
## fruit             fruit    3
## fun                 fun    3
## great             great    3
## half               half    3
## local             local    3