joinByArea: spatial join by area

View source: R/joinByArea.R

joinByAreaR Documentation

spatial join by area

Description

performs a spatial join by area

Usage

joinByArea(x, features, refCode, filter = NULL, na.rm = TRUE)

Arguments

x

an object of class "Spatial"

features

an object of class "Spatial" from which we want to inherit a geocode

refCode

an object of class = "character" representing the column to enrich x with

filter

an optional filter in the form list(key="key",value="value") to apply to the 'features' object

na.rm

TRUE (by default) if NA values (no spatial join) have to be removed

Value

an object of class "Spatial" (x enriched with the refCode from features)

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com


openfigis/RFigisGeo documentation built on Feb. 26, 2023, 6:37 a.m.