search for: modfilesmore

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

2013 Jan 27
1
lapply and SpatialGridDataFrame error
...les that I need to convert from ASCII grid format to .shp files to .bnd files 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(wr...