Merge a Spatial* object having attributes with a data.frame
merge.RdMerge a Spatial object having a data.frame (i.e. merging of non-spatial attributes).
Arguments
- x
object deriving from Spatial
- y
object of class
data.frame, or any other class that can be coerced to a data.frame withas.data.frame- by, by.x, by.y
specifications of the common columns. See 'Details' in (base)
merge.- all.x
logical; if TRUE, then the returned object will have all rows of x, even those that has no matching row in y. These rows will have NAs in those columns that are usually filled with values from y
- suffixes
character(2) specifying the suffixes to be used for making non-by names() unique.
- incomparables
values which cannot be matched. See
match.- duplicateGeoms
logical; if
TRUEgeometries inxare duplicated if there are multiple matches between records inxandy- ...
arguments to be passed to or from methods.