podlove_prep_regtable: Calculate download sums at point in time

Description Usage Arguments Value Examples

View source: R/podlove_prep_regtable.R

Description

This function takes a tidy table of downloads and creates a table containing the number of downloads at a specified point_in_time in hours. Episodes with an episode age younger than point_in_time will be excluded. Helper function to podlove_prep_regtables().

Usage

1
podlove_prep_regtable(df_tidy_data, point_in_time)

Arguments

df_tidy_data

a tidy table of downloads created by podlov_clean_stats() or podlove_get_and_clean()

point_in_time

Measurement point in time relative to episode release in hours. To specify days, use point_in_time = days * 24

Value

A tidy table of episode downloads at the specified point in time, along with episode-related fields

Examples

1
2
3
4
5
6
7
8
## Not run: 
# downloads after 12 hours
podlove_prep_regtable(podcast_example_data, 12)

# downloads after 10 days
podlove_prep_regtable(podcast_example_data, 10*24)

## End(Not run)

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