Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addattr

constructs SpatialXxxDataFrame from geometry and attributes


Description

constructs SpatialXxxDataFrame from geometry and attributes

Usage

addAttrToGeom(x, y, match.ID, ...)

Arguments

x

geometry (locations) of the queries

y

data.frame object with attributes

match.ID

logical; if TRUE, the IDs of the geometry and of the data.frame are matched (possibly swapping records), and an error occurs when some IDs do not match

...

(optional) arguments passed to the constructor functions

Value

an object of class XxxDataFrame, where Xxx is the class of x

Methods

x = "SpatialPoints", y = "data.frame"
x = "SpatialPixels", y = "data.frame"
x = "SpatialGrid", y = "data.frame"
x = "SpatialLines", y = "data.frame"
x = "SpatialPolygons", y = "data.frame"

Author(s)

See Also


sp

Classes and Methods for Spatial Data

v1.4-5
GPL (>= 2)
Authors
Edzer Pebesma [aut, cre], Roger Bivand [aut], Barry Rowlingson [ctb], Virgilio Gomez-Rubio [ctb], Robert Hijmans [ctb], Michael Sumner [ctb], Don MacQueen [ctb], Jim Lemon [ctb], Finn Lindgren [ctb], Josh O'Brien [ctb], Joseph O'Rourke [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.