Skip to contents

Chains temporal + spatial + offence + concentration into a single nested result. This is the function the 13 convenience aliases (morie_tps_analyze_assault(), etc.) wrap.

Usage

morie_tps_analyze_one(df, name = "?")

Arguments

df

A TPS crime data.frame.

name

The canonical TPS dataset name (used in titles).

Value

A morie_tps_result with named sub-results under temporal, spatial, offences, concentration.

Examples

# \donttest{
df <- try(morie_datasets_tps_assault(max_features = 200L))
if (!inherits(df, "try-error")) {
  res <- try(morie_tps_analyze_one(df, name = "assault"))
  if (!inherits(res, "try-error")) names(res)
}
#>  [1] "title"          "call"           "summary_lines"  "tables"        
#>  [5] "warnings"       "interpretation" "payload"        "sections"      
#>  [9] "temporal"       "spatial"        "offences"       "concentration" 
# }