interval_sum_reach: Search counts of keyword during time interval

Description Usage Arguments Examples

View source: R/interval_sum_reach.R

Description

interval_sum_reach() generates a data frame with the sum of reach over a period for a keyword

Usage

1
2
interval_sum_reach(start_date, end_date, keyword = NULL, search_id = NULL,
  type = NULL, granularity = "DAY")

Arguments

start_date

start date, in "1900-01-01" format

end_date

end date, in "1900-01-01" format

keyword

the keyword you want to explore, e.g. "iphone"

search_id

an ID for a search in Meltwater

type

defaults to NULL and returns "all", can be news" or "social"

granularity

defaults to "DAY" but "HOUR", "DAY", "WEEK" and "MONTH" are possible.

Examples

1
2
df <- interval_sum_reach(start_date = "2017-07-01",
 keyword = "demoskop", type = "news", granularity = "DAY")

filipwastberg/meltwateR documentation built on March 17, 2021, 8:32 a.m.