osm_processmp: This function computes the number of points for the...

View source: R/osm_processmp.R

osm_processmpR Documentation

This function computes the number of points for the multipolygon data based on selected features

Description

This function computes the number of points for the multipolygon data based on selected features

Usage

osm_processmp(
  shapefile_path = "data/cmr_polypop_boundary.shp",
  osm_path = "C:/Users/ifean/Documents/WorldBankWork/SAEPlus_Other/Cameroon_osmmp",
  geoid_var = "id",
  feature_var = c("amenity", "office", "shop"),
  drop_missing = TRUE
)

Arguments

shapefile_path

filepath of country/region shapefile with polygons of interest

osm_path

filepath to open street map lines data (road networks)

geoid_var

the variable that points to the common identifier ID between shapefile_path object and osm_path object

feature_var

specific feature of interest in the osm_path object

Value

A list containing two objects: a dataframe/datatable with original OSM multipolygon data containing feature length in polygon shapefile (from shapefile_path argument) and a lazy datatable version of the full OSM multipolygon data with point information


SSA-Statistical-Team-Projects/SAEplus documentation built on Aug. 24, 2022, 11:26 a.m.