Skip to contents

op3_downloads_show() obtains the number of monthly downloads and average weekly downloads over the last four weeks (excludes bots)

Usage

op3_downloads_show(show_id, nest_downloads = TRUE)

Arguments

show_id

One or more character strings of OP3 show UUID values

nest_downloads

Boolean to create a list column of the weekly download metrics or expand the data frame to have one row per week of download metrics. Default is TRUE.

Value

tibble data frame with the following columns:

  • days: Number of days in time window

  • monthlyDownloads: Number of downloads in month

  • weeklyAvgDownloads: Average number of downloads per week in month

  • numWeeks: Number of weeks in time window

  • download_data: Nested data frame of download numbers per week (when nest_downloads is TRUE)

  • weekNumber: Week number in time window (when nest_downloads is FALSE)

  • weeklyDownloads: Number of downloads for weekNumber (when nest_downloads is FALSE)

Examples

# Requires API token

op3_downloads_show(show_id = "a18389b8a52d4112a782b32f40f73df6")
#> # A tibble: 1 × 5
#>   daysBotDownloads monthlyDownloads weeklyAvgDownloads numWeeks download_data   
#>              <dbl>            <int>              <int>    <int> <list>          
#> 1               30            72533              16989        4 <tibble [4 × 2]>