Description Usage Arguments Value Examples
View source: R/podlove_create_example_downloads.R
Lorem
1 2 3 4 5 6 7 8 9 | podlove_create_example_downloads(
df_posts,
df_episodes,
df_mediafiles,
df_useragents,
runtime,
dl_per_ep_day,
seed
)
|
df_posts |
data frame with example posts
(created by |
df_episodes |
data frame with example episodes
(created by |
df_mediafiles |
data frame with example mediafiles
(created by |
df_useragents |
edata frame with example mediafiles
(created by |
runtime |
minimum runtime of an episode in days. This parameter defines the time difference between the release of the last episode and the last download to be generated. |
dl_per_ep_day |
Downloads per episode and day throughout its runtime. Be careful, this is a powerful parameter which will strongly increase the size of your dataset. Use the following formula to estimate this parameter: dl_per_ep_day = (2 \* total downloads) / (episodes \* total podcast runtime) e.g. to create a set of 5000 downloads for 10 episodes over one year, use (2 \* 5000 downloads) / (10 eps \* 365 days) = 2.74 downloads per ep/day. |
seed |
parameter to fix randomization via |
a tibble with downloads per episode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
test_posts <- podlove_create_example_posts(50, "2019-01-01", "2019-12-31")
test_episodes <- podlove_create_example_episodes(40, test_posts)
test_mediafiles <- podlove_create_example_mediafiles(test_episodes)
test_useragents <- podlove_create_example_useragents(100)
test_downloads <- podlove_create_example_downloads(test_posts,
test_episodes,
test_mediafiles,
test_useragents,
runtime = 100,
dl_per_ep_day = 0.93)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.