search for: spatialgrid_l

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

Did you mean: spatialgrid_ls
2012 Dec 17
2
looping through spatial points and getting counts of spatial points in spatial grid in R
...ll my spatial points are in one folder.  # Creating spatial points in R - reading the POI shapefiles as SpatialPointsDataFrame in R autopts.rg <- readOGR(".", "AutoSvc")class (autopts.rg) # Getting a count of the Spatial Points in the Spatial Data Frame in.cell <- overlay(SpatialGrid_LS,FinInstq2) newdata <- data.frame(table(in.cell))View(newdata) "SpatialGrid_LS" is the spatial grid that I had created in R.  I guess a For loop would help, but although I tried several things, I haven't been successful yet. Thanks! Tilo [[alternative HTML version deleted]]