[R-sig-Geo] Landcover grd/gri Diva files in R

Agustin Lobo alobolistas at gmail.com
Sun May 20 13:22:27 CEST 2012


Hi!

I read LC grd files (from the DIVA server) into R through raster(),
but as far as I  can tell the
landcover table (in the gri file) is not imported. I would like to use
rsgdf < as(r,SpatialGridDataFrame)

but rsgdf at data has just the column of LC numeric codes, not the LC definitions-

Is there a function to read the gri file or should I make my own?

Thanks

Agus

PS. Example in http://www.diva-gis.org/data/cov/CRI_cov.zip



More information about the R-sig-Geo mailing list