Description Usage Arguments Details Value See Also Examples
Add a dimension with dimtype
"destination"
or "child"
to an object of class
DemographicArray
.
This is useful mainly when constructing an exposure measure
to use when measuring or modelling origin-destination
or parent-child rates.
1 2 3 4 |
object |
An object of class |
base |
The name of an existing dimension. This dimension
must have |
dimtype |
Either "destination" (the default) or "child". |
The new dimension uses the same categories as one of the existing dimensions, which becomes the "origin" or "parent" dimension. The original data is replicated once for each category within the new dimension. This means that in a model of origin-destination rates, each destination has the same exposures, and in a model or parent-child rates each child category has the same exposures.
A modified version of object
To add a dimension that does not have dimtype "destination"
,
or "child"
, use function addDimension
.
1 2 3 | population <- CountsOne(10:12, labels = c("A", "B", "C"), name = "region")
addPair(population, base = "region")
addPair(population, base = "region", dimtype = "child")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.