Skip to contents

Mirror of Python's morie.tps_io.load_tps. csv and excel work with base R / readxl; all spatial formats (geojson, featurecollection, kml, geopackage, sqlitegeodatabase, shapefile, filegeodatabase) are gated behind requireNamespace("sf") and surface a clean install message if the dependency is missing.

Usage

morie_tps_load(name, format = "csv", nrows = NULL)

Arguments

name

TPS category. Case-insensitive.

format

One of MORIE_TPS_SUPPORTED_FORMATS.

nrows

Optional integer cap on rows.

Value

A data.frame (spatial readers return the dropped-sf data frame; geometry column is preserved as an sfc).