merge: Merge a Spatial* object with a data.frame

Description Usage Arguments Value Author(s) See Also

Description

Merge a Spatial* object with a data.frame (i.e. merging of non-spatial attributes).

Usage

1
2
## S4 method for signature 'Spatial,data.frame'
merge(x, y, by=intersect(names(x), names(y)), by.x=by, by.y=by, all.x=TRUE, suffixes = c(".x",".y"), incomparables=NULL, ...)

Arguments

x

Spatial* object

y

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.

...

arguments to be passed to or from methods.

Value

Spatial*

Author(s)

Robert J. Hijmans

See Also

The merge


geovec documentation built on May 2, 2019, 6:15 p.m.