Skip to contents

Thin 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.

Usage

morie_tps_fetch_dataframe(category, ...)

Arguments

category

One of morie_tps_list_categories().

...

Passed through to morie_tps_fetch_category().

Value

A data.frame.

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)
} # }