nds_join_spdlimit: Join NDS data with OSM speed limit data

View source: R/nds_join.R

nds_join_spdlimitR Documentation

Join NDS data with OSM speed limit data

Description

This function joins NDS data with OSM speed limit data, including a 10-meter buffer around axis data and arranging speed limit information.

Usage

nds_join_spdlimit(ndsbr_data, osm_data, vars = "maxspeed")

Arguments

ndsbr_data

An sf object representing NDS data. This object should have a POINT geometry type.

osm_data

An sf object representing OSM data. This object should have a LINESTRING or MULTILINESTRING geometry type.

vars

A character vector of variables to join from the OSM data. Default is "maxspeed".

Value

An sf object with the joined data, including speed limit information.

Examples

## Not run: 
cwb_osm <- nds_download_cwb_osm()
result <- nds_join_spdlimit(ndsbr_data_sf, cwb_osm)

## End(Not run)


pabsantos/ndsbr documentation built on June 13, 2024, 3:47 a.m.