getDataTable: Vehicle Ownership statistics downloader & formatter.

Description Usage Arguments Value

View source: R/main.R

Description

Download VEH0122 stats on vehicle ownership from gov.uk, reformat into a single data table & save locally. Currently includes cars only in assembled file.

Usage

1
getDataTable(download = FALSE, get_from_RDS = TRUE, type = "Cars")

Arguments

download

Look for a locally-saved source VEH0122.ods file first, otherwise, download the latest VEH0122 stats. TRUE = download the file from the main url, FALSE = use already-downloaded.

get_from_RDS

Look for a locally-saved VEH0122.RDS data.frame first, before trying download

type

"Cars", "Motorcycles", or "Other"

Value

Returns the data frame.


mihamn/VEH0122 documentation built on July 11, 2020, 3:45 a.m.