Description Usage Arguments Value Examples
This function return polygon id from an input data.table using the precomputed pockets.
1 | get_joint_risks(dt, polygons, streets)
|
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. |
A list of joint risks aggregate information including a data frame of included risks for all provided input.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.