Hi Karla,
Appart from spatstat/sp, you might give a try to adehabitat: there's a
function called 'ascgen' which does exactly what you want: create a grid
of a given resolution according to the points you have, with the number
of points in each cell. Check ?ascgen (and especially the example) for
further details. There are eventually functions to convert maps from
adehabitat to sp if needed.
Hope this helps,
Mathieu.
Karla Falk a écrit :
Hi,
I have a data set of points that I would like to convert to grid cell counts.
Ultimately I would like to end up with a table that has an x-y coordinate for
each grid cell, and the count of the # of points falling in each grid cell.
Does anyone know a way to do this in R? I have been playing around with using
quadratcounts in spatstat, and the overlay methods in sp, but with both I can't
figure out how to get an output table of the cell counts (including counts of
zero's) with the corresponding x-y utm of the grid cell. Any help would be
greatly appreciated!
Thanks,
Karla
--
math...@lbbe:~$ whoami
> Mathieu Basille, PhD
math...@lbbe:~$ locate
> Laboratoire de Biométrie et Biologie Évolutive
> Université Claude Bernard Lyon 1 - France
> http://lbbe.univ-lyon1.fr/
math...@lbbe:~$ info
> http://ase-research.org/basille
math...@lbbe:~$ fortune
> ``If you can't win by reason, go for volume.''
> Calvin, by Bill Watterson.
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo