Description Usage Arguments Value See Also Examples
View source: R/podlove_total_average_downloads.R
Calculates the total of downloads and the average of downloads over a time unit for a podcast or its episodes. The measurement period can be defined with an upper and lower limit. Use this function for fine-tuned performance measurement.
1 2 3 4 5 6 7 | podlove_total_average_downloads(
df_tidy_data,
lower_limit = 0,
upper_limit = Inf,
limit_unit = "days",
...
)
|
df_tidy_data |
A tidy data frame with download data, as constructed
by |
lower_limit |
lower cutoff for time since episode launch (used to eliminate launch peaks). Defaults to 0, i.e. no filtering. |
upper_limit |
upper cutoff for time since episode launch (used to eliminate long term download data and just focus on launch performance) |
limit_unit |
time unit for limits. Can be "days" (default) or "hours". Used to fine-tune launch performance cutoffs. |
... |
used for depreciated arguments |
a dataframe containing performance data per episode (total downloads, during time period, average downloads during time period).
podlove_performance_stats
for a more general performance function
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# total and average downloads by episode, no timeframe filter (complete period)
podlove_total_average_downloads(podcast_example_data, gvar = "title")
# total and average downloads by episode number after 7 days of release
podlove_total_average_downloads(podcast_example_data, gvar = "ep_number",
lower_limit = 7)
# total and average downloads by episode number during first 12 hours of release
podlove_total_average_downloads(podcast_example_data, gvar = "ep_number",
upper_limit = 12, limit_unit = "hours")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.