podlove_create_example_useragents: Create a sample Wordpress "podlove_useragent" table

Description Usage Arguments Value Examples

View source: R/podlove_create_example_useragents.R

Description

This function generates a tibble with sample data corresponding to the Wordpress MySQL database table wp_podlove_useragent.

Usage

1
2
3
4
5
podlove_create_example_useragents(
  n_useragents,
  df_ua_list = podcast_example_useragents,
  seed = NULL
)

Arguments

n_useragents

number of posts (rows) to generate. can't be higher than the number of entries in df_ua_list.

df_ua_list

data frame with possible user agent combinations. defaults to the in-built data set podcast_example_useragents

seed

parameter to fix randomization via set.seed()

Value

a tibble with n_useragents rows

Examples

1
2
3
4
5
## Not run: 
# random useragent list 
example_useragents <- podlove_create_example_useragents(n_useragents = 100)

## End(Not run)

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