View source: R/array_transform.R
fillMissingDimnames
is the workhorse function for
decorateDims
and decorateDims_
. It replaces
missing dimension names and identifiers and returns the modified 'dimnames'
attribute.
1 | fillMissingDimnames(dimn, .dim, .names = TRUE, .dimnames = TRUE)
|
dimn |
a list of the original dimension names |
.dim |
an integer vector of dimensions |
.names |
either 1) a logical value whether dimension identifiers (names of dimnames) should be checked and corrected (default: TRUE), or 2) a character vector of new dimension identifiers for missing, NA or "" dimension identifiers, or 3) a single character value after which 1, 2, ... is appended to create unique identifiers (see Examples) |
.dimnames |
either 1) a logical value whether dimnames should be checked and corrected (default: TRUE), or 2) a list of character vectors of new dimnames for dimensions with missing, NA or "" dimnames, or 3) a single character value after which 1, 2, ... is appended to create unique dimension levels (see Examples). If '.names' is not explicitly provided but '.dimnames' is a named list, its names are considered as '.names'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.