Displaying 1 result from an estimated 1 matches for "modeldepthsmor".
Did you mean:
modeldepthsmore
2013 Jan 27
1
lapply and SpatialGridDataFrame error
...for BayesX.
I have the following R code to operate on those files:
library(maptools)
library(Grid2Polygons)
library(BayesX)
library(BayesXsrc)
library(R2BayesX)
readfunct <- function(x)
{
u <- readAsciiGrid(x)
}
modfilesmore <- paste0("MaxFloodDepth_", 1:54, ".txt")
modeldepthsmore <- lapply(modfilesmore, readfunct)
maxdepth.plys <- lapply(modeldepthsmore, Grid2Polygons(modeldepthsmore,
level = FALSE))
layers <- paste0("examples/floodlayers_", 1:54)
polyshapes <- lapply(writePolyShape(maxdepth.plys, layers))
shpName <- sub(pattern="(.*)\\.dbf&...