| nIteration {dembase} | R Documentation |
If an object of class DemographicArray has a dimension
with dimtype "iteration", return the lenth of that
dimension; if not, raise an error.
nIteration(object) ## S4 method for signature 'DemographicArray' nIteration(object)
object |
Object of class |
An integer.
John Bryant demographic.packages@gmail.com
library(demdata)
x <- Counts(array(replicate(n = 5, rnorm(2)),
dim = c(2, 5),
dimnames = list(sex = c("Female", "Male"),
iteration = 1:5)))
nIteration(x)
x <- Counts(VAPopn)
## no dimension with dimtype "iteration"
## Not run: nIteration(x)