Sometimes you need to add polygon id into your streets road network.
add_polid add add_polid id into your road network cropping your
For instance, you have open street maps road network the you have the polygon of your regions. This function adds the id of your polygon as a new column in the streets network.
add_polid(polyg, street, by)
sf object POLYGON or sp
streets road network class sf or sp
Character indicating the column with the id in polyg