Description Usage Arguments Value See Also Examples
Add an extra dimension to an array x
. Categories
for an existing dimension in x
must nest within
categories for the new dimension. For instance,
if an existing dimension in x
is districts,
the extra dimension might be the provinces that the
disticts belong to. The relationship between the
existing lower-level categories and the new
upper-level categories is described by data frame
nest
.
1 2 3 4 5 6 7 8 9 10 | add_dim_nest(x, nest)
## S4 method for signature 'array'
add_dim_nest(x, nest)
## S4 method for signature 'Counts'
add_dim_nest(x, nest)
## S4 method for signature 'Counts'
add_dim_nest(x, nest)
|
x |
An array, including a
|
nest |
A data.frame providing a mapping between the higher-level and lower-level categories. |
An object with the same class as x
,
but with an extra dimension.
zero_matrix_nest
creates a matrix
describing the relationship between the upper-level and
lower-level categories.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.