
Fetch a TPS category and return it as a data.frame
Source: R/tps_fetch.R
morie_tps_fetch_dataframe.RdThin wrapper over morie_tps_fetch_category(): writes the CSV
then reads it back. Mirrors the Python fetch_tps_dataframe
convenience used as a DATASET_CATALOG fetcher.
Arguments
- category
One of
morie_tps_list_categories().- ...
Passed through to
morie_tps_fetch_category().
Examples
# The layers this can fetch -- a local lookup, no network.
morie_tps_list_categories()
#> [1] "Assault" "AutoTheft"
#> [3] "BicycleTheft" "BreakAndEnter"
#> [5] "Homicides" "Robbery"
#> [7] "ShootingAndFirearmDiscarges" "TheftFromMV"
#> [9] "TheftOver"
if (FALSE) { # \dontrun{
# Fetching one is a live ArcGIS query; it ran for nine minutes in the
# docs build, so it is shown rather than executed.
df <- morie_tps_fetch_dataframe(morie_tps_list_categories()[1])
head(df)
} # }