osm_cleanprocess: This function does simple cleaning of the OSM data for lines,...

View source: R/osm_cleanprocess.R

osm_cleanprocessR Documentation

This function does simple cleaning of the OSM data for lines, multipolygons and points

Description

This function does simple cleaning of the OSM data for lines, multipolygons and points

Usage

osm_cleanprocess(
  dt,
  dropNA_cols = TRUE,
  zero_NA = TRUE,
  missing_threshold = 0.3
)

Arguments

dropNA_cols

if TRUE, unnamed classifications of features are dropped. Note: This is different from the label "unclassified" as some features are tagged "NA" in OSM data (default is FALSE)

zero_NA

if TRUE, NA observations are left as zero (default is FALSE)

missing_threshold

numeric, if zero_NA is TRUE, missing_threshold is a value between 0 and 1. Columns with a rate of missing observations less than missing_threshold will have missing values converted to 0.

Value

a cleaned data.table object


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