Skip to contents

Returns a summary of all datasets published by the Australian Taxation Office on data.gov.au. Each row is a CKAN "package" with an id (slug), title, licence, modification date, and resource count.

Usage

ato_catalog(q = NULL)

Arguments

q

Optional free-text filter (CKAN Solr query). NULL returns the full ATO catalogue.

Value

An ato_tbl with one row per dataset.

Examples

# \donttest{
op <- options(ato.cache_dir = tempdir())
try({
  cat <- ato_catalog()
  head(cat[, c("id", "title", "licence")])
})
#> # ato_tbl: ATO data
#> # Source:   https://data.gov.au
#> # Licence:  CC BY 2.5 AU
#> # Retrieved: - 
#> # Rows: 6  Cols: 3
#> 
#>                                          id
#> 1  2019-20_report_of_entity_tax_information
#> 2                      ad-hoc-data-requests
#> 3               ato-business-industry-codes
#> 4      ato-salary-and-wage-occupation-codes
#> 5 ato-web-analytics-july-2013-to-april-2014
#> 6                       australian-tax-gaps
#>                                       title
#> 1  2019-20 Report of Entity Tax Information
#> 2                     Ad-hoc requested data
#> 3               ATO Business Industry codes
#> 4      ATO Salary and Wage Occupation Codes
#> 5 ATO Web Analytics July 2013 to April 2014
#> 6                       Australian Tax Gaps
#>                                      licence
#> 1 Creative Commons Attribution 2.5 Australia
#> 2 Creative Commons Attribution 3.0 Australia
#> 3 Creative Commons Attribution 2.5 Australia
#> 4 Creative Commons Attribution 2.5 Australia
#> 5 Creative Commons Attribution 3.0 Australia
#> 6 Creative Commons Attribution 2.5 Australia
options(op)
# }