Description Usage Arguments Details See Also Examples
Given an object of class DemographicArray
that has a
dimension with dimtype
"iteration"
, return a new
object containing a subset of the original iterations.
1 2 3 4 | thinIterations(object, n)
## S4 method for signature 'DemographicArray'
thinIterations(object, n)
|
object |
Object of class |
n |
The number of iterations to retain. |
The n
iterations to retain are chosen at random, and are numbered
1
, 2
, ..., n
.
If object
does not have a dimension with dimtype "iteration"
,
thinIterations
throws an error.
Other functions that can be used to subset a dimension with
dimtype
"iteration"
are subarray
,
slab
, and [
. To remove an "iteration"
dimension entirely, use collapseIterations
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.