Displaying 1 result from an estimated 1 matches for "tp4634579p4634868".
2012 Jun 27
1
how to convert list of matrix (raster:extract o/p) to data table with additional colums (polygon Id, class)
Hi List,
I have a raster and a polygon with attribute ID and Class.
I want to have the fraction of each class present in each pixel of raster. I
have use the raster::extract to get the value and weights as below.
ex<-extract(raster,polygon,weighted=TRUE)
this gives me
[[1]]
value weight
13943 0.24
13958 0.02
13959 0.84
13960 0.19
13987 0.03
13988 0.31
13990 0.30
[[2]]