osm_processpoints: This function cleans up OSM lines data in preparation for...

View source: R/osm_processpoints.R

osm_processpointsR Documentation

This function cleans up OSM lines data in preparation for survey to survey imputation analysis

Description

This function cleans up OSM lines data in preparation for survey to survey imputation analysis

Usage

osm_processpoints(
  shapefile_path = "data/cmr_polypop_boundary.shp",
  osm_path = "C:/Users/ifean/Documents/WorldBankWork/SAEPlus_Other/Cameroon_osmpoints",
  geoid_var = "id",
  feature_var = "highway"
)

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 points data containing number of points in polygon shapefile (from shapefile_path argument) and a lazy datatable version of the full osm points data with point information


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