Read the Contoso business reports

Source: R/reports.R

Returns 1,127 fictional internal business documents written about Contoso’s trading from May 2016 to the end of 2025, one row per report: the metadata a document system would record, plus the Markdown text in body. The figures in the reports come from the “mega” dataset (create_contoso_duckdb(“mega”)), not the bundled tables, which end in 2024. Use export_reports() to get them as files. The terms the reports use are defined in system.file(“extdata”, “reports”, “glossary.yaml”, package = “contoso”).

Usage

read_reports()

Value

A tibble with columns id, title, unit, author, report_type, period_start, period_end, published (the last three are Date) and body.

Examples

reports <- read_reports()
reports[, c("id", "published")]
#> # A tibble: 1,127 × 2
#>    id                    published 
#>    <chr>                 <date>    
#>  1 sales-flash-2016-w21  2016-05-30
#>  2 sales-flash-2016-w22  2016-06-06
#>  3 sales-flash-2016-w23  2016-06-13
#>  4 ops-notice-2016-06-20 2016-06-20
#>  5 sales-flash-2016-w24  2016-06-20
#>  6 sales-flash-2016-w25  2016-06-27
#>  7 ecommerce-2016-06     2016-07-04
#>  8 sales-flash-2016-w26  2016-07-04
#>  9 manufacturing-2016-06 2016-07-05
#> 10 supply-chain-2016-06  2016-07-05
#> # ℹ 1,117 more rows