View source: R/tg_channel_avg_posts_reach.R
| tg_channel_avg_posts_reach | R Documentation |
Allows you to get the indicator "average coverage of publications" in dynamics by days, weeks, months.
tg_channel_avg_posts_reach(
channel_id = tg_get_channel_id(),
start_date = Sys.Date() - 15,
end_date = Sys.Date(),
group = c("day", "week", "month")
)
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 |
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
tibble with post reach dinamics
See also TGStat API Documentation of metrod channels/avg-posts-reach
## Not run:
tg_set_channel_id('R4marketing')
post_reach <- tg_channel_avg_posts_reach()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.