Description Usage Arguments Details Value See Also Examples
Check and tidy map_dim
, a mapping between the
dimensions of arrays self
and oth
.
If a dimension of self
does not map on to a dimension of oth
, then the
corresponding element of map_dim
is zero.
oth
can have dimensions that self
does not map on to, so map_dim
does not
necessarily contain every number in
seq_along(dim_oth)
.
1 | err_tdy_map_dim(map_dim, n_dim_self, n_dim_oth)
|
map_dim |
A vector of non-negative integers,
unique apart from any zeros, the same length as
|
n_dim_self |
The number of dimensions of |
n_dim_oth |
The number of dimensions of |
self
and oth
are both assumed to have positive
length, ie no dimensions with length 0.
map_dim
, coerced to integer.
1 2 3 | err_tdy_map_dim(map_dim = c(3, 1, 0),
n_dim_self = 3L,
n_dim_oth = 4L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.