sp {spbabel} | R Documentation |
Convert from dplyr tbl form to Spatial*DataFrame.
Description
Convert from dplyr tbl form to Spatial*DataFrame.
Usage
sp(x, ...)
## S3 method for class 'data.frame'
sp(x, attr_tab = NULL, crs, ...)
Arguments
x |
tibble as created by |
... |
unused |
attr_tab |
remaining data from the attributes |
crs |
projection, defaults to |
Value
Spatial*
Examples
library(dplyr)
semap1 <- semap %>% dplyr::filter(y_ > -89.9999)
sp_obj <- sp(semap1, attr_tab = seatt, crs = "+proj=longlat +ellps=WGS84")
## look, seamless Antarctica!
## library(rgdal); plot(spTransform(sp_obj, "+proj=laea +lat_0=-70"))
[Package spbabel version 0.6.0 Index]