Allows you to get the "ERR" indicator in dynamics by day, week, month.
Usage
tg_channel_err(
channel_id = tg_get_channel_id(),
start_date = Sys.Date() - 15,
end_date = Sys.Date(),
group = c("day", "week", "month")
)
Arguments
- channel_id
Channel ID (@username, t.me/username, t.me/joinchat/AAAAABbbbbcccc ... or channel ID in 'TGStat')
- start_date
Start date of report period
- end_date
End date of report period
- group
Time group: day, week, month
Details
For the group = 'day'
grouping, the value for the "average coverage of publications" as of the end of the day will be returned.
For groupings group = 'week'
and group = 'month'
, the value of the indicator "average coverage of publications" at the end of the last day of the period (week or month) will be returned.
By default, the result will be returned for the last 10 days. However, you can specify the required period using the start_date
and end_date
parameters, while observing the restrictions on your tariff.
Depending on the requested grouping type group - the period
field will take one of the following formats:
day: Y-m-d
week: Y-W
month: Y-m
Examples
if (FALSE) {
tg_set_channel_id('R4marketing')
err <- tg_channel_err()
}