Skip to contents

name is case-insensitive. Pass nrows = N for a quick sample while developing against the largest tables.

Usage

morie_tps_load_dataset(name, path = NULL, csv_filename = NULL, nrows = NULL)

Arguments

name

Character scalar. One of names(MORIE_TPS_REGISTRY), case-insensitive.

path

Optional character scalar. Override the CSV file or directory to load from. If a directory, the first *.csv inside is picked. If NULL, the loader walks morie_tps_data_dir().

csv_filename

Optional filename inside the category's CSV/ directory.

nrows

Optional integer. Cap on rows to load.

Value

A data.frame (the CSV contents) with tolerant OCCURRENCE_* / REPORTED_* column renaming applied.

Details

For non-CSV sibling formats (Excel, GeoJSON, KML, GeoPackage, Shapefile, etc.), use morie_tps_load() from tps_io.R instead.

Examples

if (FALSE) { # \dontrun{
df <- morie_tps_load_dataset("Assault", nrows = 1000L)
} # }