[R-sig-Geo] convert point data to count data

Adrian.Baddeley at csiro.au Adrian.Baddeley at csiro.au
Fri Jun 12 17:59:51 CEST 2009


Sorry, that should have been

df <- data.frame(x=as.vector(rasterx.im(Z)),
                         y=as.vector(rastery.im(Z)),
                         count=as.vector(as.matrix(Z)))

Adrian



More information about the R-sig-Geo mailing list