[R-sig-Geo] Compatibility between sf and raster

Manuel Spínola mspinola10 at gmail.com
Tue Aug 29 17:03:57 CEST 2017

Dear list members,

Is there any plan to make compatible the sf and the raster packages?


> nc <- st_read(system.file("shape/nc.shp", package="sf"))
Reading layer `nc' from data source
using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
geometry type:  MULTIPOLYGON
dimension:      XY
bbox:           xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax:
epsg (SRID):    4267
proj4string:    +proj=longlat +datum=NAD27 +no_defs

> raster(nc)
Error in (function (classes, fdef, mtable)  :
  unable to find an inherited method for function ‘raster’ for signature

*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

More information about the R-sig-Geo mailing list