volume_sentiment_metric.Rd
Returns the data for creating volume/sentiment charts
volume_sentiment_metric(code, filter, group = "day", file = NULL, save = FALSE)
code | The account code to use |
---|---|
filter | The filter for the data |
group | An optional string to group data by. Can be "day", "week", "month" |
file | An optional file name to save a CSV file to |
save | Set to TRUE if you'd like a dialog file to choose where to save your CSV |
A tibble of your data
volume_sentiment_metric("QUIR01BA", "published inthelast week and brand isorchildof 10006")#> # A tibble: 8 x 11 #> published count netSentiment netSentimentPer… uniqueAuthors #> <dttm> <int> <int> <dbl> <int> #> 1 2018-08-30 00:00:00 6 1 0.167 5 #> 2 2018-08-31 00:00:00 10 3 0.3 9 #> 3 2018-09-01 00:00:00 7 2 0.286 4 #> 4 2018-09-02 00:00:00 1 0 0 1 #> 5 2018-09-03 00:00:00 2 0 0 2 #> 6 2018-09-04 00:00:00 2 0 0 2 #> 7 2018-09-05 00:00:00 3 1 0.333 2 #> 8 2018-09-06 00:00:00 0 0 0 0 #> # ... with 6 more variables: positiveSentiment <int>, positivePercent <dbl>, #> # negativeSentiment <int>, negativePercent <dbl>, neutralSentiment <int>, #> # neutralPercent <dbl>