extract_SFSW2_points_from_shp: Extract spatial polygon data for point locations

Description Usage Arguments Value See Also

View source: R/Spatial_Functions.R

Description

Extract spatial polygon data for point locations

Usage

1
extract_SFSW2_points_from_shp(x, y, fields = NULL, code = NULL, ...)

Arguments

x

An object inheriting from sp::SpatialPolygons from which data are extracted.

y

graphics::points represented by an object inheriting from sp::SpatialPoints.

fields

A character vector. If not NULL, then fields selects columns of the extracted object.

code

A character vector. If not NULL, then the extracted data are treated as integer codes of a factor whose levels are encoded by code.

...

Ignored.

Value

A vector or matrix with length/rows corresponding to the elements of y and available columns requested by fields. If !is.null(code), then the encoded 'factor levels' are returned.

See Also

over


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.