Description Usage Arguments Value Examples
View source: R/podlove_create_example_dl_ep.R
This function generates a tibble with ficticious download data for one podcast
episode. It is the core helper function for podlove_create_example_downloads
.
The function generates three kinds of data: a lognormal (long-tail) curve,
a uniform (noise) curve, and several normal distributed peaks. All three
distributions are mixed to provide approximate download simulation data.
1 2 3 4 5 6 7 | podlove_create_example_dl_ep(
n_dls,
dl_startdate,
dl_enddate,
media_file_id,
seed = NULL
)
|
n_dls |
number of downloads (rows) to generate |
dl_startdate |
start date+time of downloads (episode release), formated as a ymd string (e.g. "2019-01-31 12:31") |
dl_enddate |
last download date+time |
media_file_id |
id of the related media file |
seed |
parameter to fix randomization via |
a tibble with n_dl download times in seconds after release
1 2 3 4 | podlove_create_example_dl_ep(n_dls = 1000,
dl_startdate = "2019-01-01",
dl_enddate = "2019-12-31",
media_file_id = 105)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.