View source: R/amzn_frequent_terms.R
amzn_frequent_terms | R Documentation |
Function to calculate the top terms for each star rating.
amzn_frequent_terms(data, count)
data |
Data frame created by |
count |
Number of terms to return per star rating |
Returns a list with two items - item 1 ($data) is the data frame with top terms for each star rating; item 2 ($graph) is a ggplot bar graph faceted by star rating
## Not run:
out <- amzn_frequent_terms(data, 15)
# to access data
top_terms <- out$data
# to call the graph
out$graph
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.