get_joint_risks: Polygon blaster

Description Usage Arguments Value Examples

View source: R/jointrisk.R

Description

This function return polygon id from an input data.table using the precomputed pockets.

Usage

1
get_joint_risks(dt, polygons, streets)

Arguments

dt

A data.frame with the following

polygons

A data.frame to compare dt to.

streets

A LINESTRING object of navstreets with LANE_RADIUS and geometry elements.

Value

A list of joint risks aggregate information including a data frame of included risks for all provided input.

Examples

1
2
3
4
5
6
7
## Not run: 
dt <- jsonlite::fromJSON('[{"PRCH_ID":14543671,"COMAUBAT":"NA",
"AFFECTAT":"C8112","LATITCOM":"46.77418", "LONGICOM":"-71.30196",
"PRINCFUS":4,"SUPERREZ":1800, "UMESSUPE":"PI","TYPECONS":5}]')
get_joint_risks(dt, polygons)

## End(Not run)

Boostao/jointrisk documentation built on Jan. 6, 2022, 12:28 a.m.