merge_download_paths: Aggregate document download metrics for all pages that have...

Description Usage Arguments Value

View source: R/utils.R

Description

merge_download_paths takes a tibble of document download metrics by property, date and page and sums the metrics for all pages that have the same path i.e. for all pages whose paths differ only by their query string and internal links.

Usage

1
merge_download_paths(downloads, by_date)

Arguments

downloads

A tibble of document download metrics by property, date and page path returned from one of the download fetching functions.

by_date

A boolean indicating whether the results are broken down by date.

Value

A tibble with the same column structure as the input tibble where the metrics have been summed for all pages with the same root path.


olihawkins/clga documentation built on Sept. 17, 2020, 7:19 a.m.