Skip to content

lapply and SpatialGridDataFrame error

2 messages · Irucka Embry, Roger Bivand

#
Irucka Embry <iruckaE <at> mail2world.com> writes:
...
You also posted on R-sig-geo a few hours after posting here - certainly a more
relevant choice of list, but you are rather impatient.

I'm assuming that you have read up on how lapply() works, and realised what is
wrong with your understanding. But just in case,
does not pass the list component from modeldepthsmore anywhere, but tries to run
Grid2Polygons on the whole list. Something like (untried):

maxdepth.plys <- lapply(modeldepthsmore, function(x) Grid2Polygons(x, level =
FALSE))

should do that. Please summarise to R-sig-geo.

Roger