merge.sf | R Documentation |
merge method for sf and data.frame object
## S3 method for class 'sf'
merge(x, y, ...)
x |
object of class |
y |
object of class |
... |
arguments passed on to |
a = data.frame(a = 1:3, b = 5:7)
st_geometry(a) = st_sfc(st_point(c(0,0)), st_point(c(1,1)), st_point(c(2,2)))
b = data.frame(x = c("a", "b", "c"), b = c(2,5,6))
merge(a, b)
merge(a, b, all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.