chk_dimnames_complete: Check that all dimensions of an array have complete dimnames

Description Usage Arguments See Also Examples

View source: R/chk-composite.R

Description

Check that the dimnames for an array include every dimension, and have no blanks, NAs, or duplicates

Usage

1
2
3

Arguments

x

An array.

name

The name for x that will be displayed in error messages.

See Also

chk_array_metadata_complete.

Examples

1
2
3
4
5
x <- array(1:6,
           dim = 3:2,
           dimnames = list(region = c("a", "b", "c"),
                           sex = c("Female", "Male")))
chk_dimnames_complete(x, name = "x")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.