[Biomod-commits] Extracting values from a raster

Manuel Spínola mspinola10 at gmail.com
Thu Sep 9 05:13:20 CEST 2010


  Dear list members,

I am trying to use xyValues to extract values from a raster file:

muestra = readAsciiGrid("cld6190_ann.asc")

loc = read.csv(file="bradypus.csv",head=TRUE,sep=",")
loca = loc[,2:3]

df = xyValues(muestra, loca)
Error en function (classes, fdef, mtable)  :
   unable to find an inherited method for function "xyValues", for 
signature "SpatialGridDataFrame", "data.frame"

Why did I get the error message?

Best,

Manuel

-- 
Manuel Spínola, Ph.D.
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.ac.cr
mspinola10 at gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036



More information about the Biomod-commits mailing list