podlove_total_average_downloads: Calculate total downloads and average downloads over time

Description Usage Arguments Value See Also Examples

View source: R/podlove_total_average_downloads.R

Description

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.

Usage

1
2
3
4
5
6
7
podlove_total_average_downloads(
  df_tidy_data,
  lower_limit = 0,
  upper_limit = Inf,
  limit_unit = "days",
  ...
)

Arguments

df_tidy_data

A tidy data frame with download data, as constructed by podlove_clean_stats() or podlove_get_and_clean.

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

Value

a dataframe containing performance data per episode (total downloads, during time period, average downloads during time period).

See Also

podlove_performance_stats for a more general performance function

Examples

 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)

lordyo/podlover documentation built on Feb. 20, 2020, 5:58 p.m.