search for: inputshape

Displaying 1 result from an estimated 1 matches for "inputshape".

2012 Jun 27
1
how to convert list of matrix (raster:extract o/p) to data table with additional colums (polygon Id, class)
...0.95 2 AG 13988 0.50 2 AG 13990 0.30 2 AG 13988 0.50 3 BU 13990 0.30 3 BU To do this I have down following makeDtbl<- function(x,class,id='NA') { if(!is.null(x)) data.table(x,y,z) } inputClass<-as.character(inputShape at data$CLASS) id<-as.character(inputShape at data$ID) kc<-mapply(makeDtbl,ex,inputClass,id) I got kc as [,1] [,2] [,3] value Numeric,7 Numeric,7 Numeri...