Description Usage Arguments Value Author(s) Examples
Extract data from object of Class 'sim1D' for the very last time step
1 | sim1D.final(obj)
|
obj |
Object created with |
A numeric matrix where rows represent boxes/layers. There is one column for each item and columns are named accordingly. Rows are unnamed but the following attributes are set:
time
: Scalar numeric representing the last time point for
which data are stored in obj
.
coordinates
: Spatial coordinates corresponding to the
rows of the result. This is a matrix with two colums 'min' and 'max'.
David Kneis david.kneis@tu-dresden.de
1 2 3 4 5 6 7 8 9 10 11 | gr <- makeGrid(dz0=0.01, dzMax=0.02, zMax=0.1, beta=1)
times <- 0:2
vars <- c("A","B")
pros <- c("X","Y")
values <- matrix(1:(length(times)*nrow(gr)*(length(vars)+length(pros))),
nrow=length(times))
dyn <- cbind(times, values)
colnames(dyn) <- c("time", paste(rep(vars, each=nrow(gr)), 1:nrow(gr),sep="."),
paste(rep(pros, each=nrow(gr)), 1:nrow(gr),sep="."))
obj <- sim1D.create(dyn, namesVars=vars, namesPros=pros, xMin=gr$zUp, xMax=gr$zLw)
sim1D.final(obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.