chk_array_metadata_complete: Check that an array has complete metadata

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

Check it is possible to uniquely identify every cell in an array, using the array's dimnames and the the names of the dimnames.

Usage

1
2
3

Arguments

x

An array.

name

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

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_array_metadata_complete(x, name = "x")

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