[R-sig-Geo] Extract raster attributes ( factors) directly for points

Jonathan Greenberg jgrn at illinois.edu
Mon May 12 15:53:08 CEST 2014


Nevil:

I think if you:

extract(...,sp=TRUE) you'll get what you are looking for (that will
extract the values and place them into the data frame of the spatial
object -- you can always peel off the data.frame afterwards using e.g.
as.data.frame).

--j

On Mon, May 12, 2014 at 12:39 AM, nevil amos <nevil.amos at gmail.com> wrote:
> Is it possible to extract multiple values from  a raster attribute table
> (eg EVDEFG_RC2 at data@attributes[[1]][,4:7] directly to a data frame? or is
> it only possible by joining the raster attribute table to the extracted
> raster value?
>
> thanks
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



-- 
Jonathan A. Greenberg, PhD
Assistant Professor
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
Department of Geography and Geographic Information Science
University of Illinois at Urbana-Champaign
259 Computing Applications Building, MC-150
605 East Springfield Avenue
Champaign, IL  61820-6371
Phone: 217-300-1924
http://www.geog.illinois.edu/~jgrn/
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007



More information about the R-sig-Geo mailing list