geometryDS: Wrapper for 'geometry()' function from sp and rgeos package

Description Usage Arguments Details Value Author(s)

View source: R/geometryDS.R

Description

This function is a wrapper for the geometry() function from the sp and rgeos package.

Usage

1
geometryDS(input_x)

Arguments

input_x

spatial dataframe

Details

See the geometry() function from sp and rgeos package for more details

Value

If y is only geometry an object of length length(x). If returnList is FALSE, a vector with the (first) index of y for each geometry (point, grid cell centre, polygon or lines) in x. if returnList is TRUE, a list of length length(x), with list element i the vector of all indices of the geometries in y that correspond to the $i$-th geometry in x. If y has attribute data, attribute data are returned. returnList is FALSE, a data.frame with number of rows equal to length(x) is returned, if it is TRUE a list with length(x) elements is returned, with a list element the data.frame elements of all geometries in y that correspond to that element of x.

Author(s)

Bishop, T.


tombisho/dsGeo documentation built on May 14, 2020, 1:39 a.m.