fillMissingDimnames: Find and fill missing dimension names and identifiers

Description Usage Arguments

View source: R/array_transform.R

Description

fillMissingDimnames is the workhorse function for decorateDims and decorateDims_. It replaces missing dimension names and identifiers and returns the modified 'dimnames' attribute.

Usage

1
fillMissingDimnames(dimn, .dim, .names = TRUE, .dimnames = TRUE)

Arguments

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'.


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.