Description Usage Arguments Value See Also Examples
dimtypes
"origin"
and "destination"
,
and dimtypes
"parent"
and "child"
,
always come in pairs. If one of these dimensions is collapsed,
the remaining dimension is converted to dimtype "state"
,
and the "_orig"
, "_dest"
, "_parent"
or "_child"
suffix in its name disappears.
Normally this behaviour is useful, but sometimes it is not.
pairToState
converts all dimensions
in object
with dimtype
"origin"
,
"destination"
, "parent"
, or "child"
to dimtype
"state"
. To conform to the rule
that paired dimensions, and only paired dimensions, have
suffixes code"_orig", "_dest"
, "_parent"
or "_child"
, the names of transformed dimensions
are changed, with the "_"
characters in the
suffixes being changed to "."
.
1 2 3 4 | pairToState(object)
## S4 method for signature 'DemographicArray'
pairToState(object)
|
object |
An object of class |
An object with the same class as object
,
but with altered dimtypes and names, if any paired dimtypes were
present in object
.
For descriptions of dimtypes and the rules that govern
them, see dimtypes
. Dimensions are collapsed
using function collapseDimension
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.