chk_items_length_k: Check that all items in a list have length k

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that all items in a list have length k

Usage

1
2
3

Arguments

x

A list.

k

The required length of each item.

name

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

Examples

1
2
3
4
x <- list(3:1, 1:3, c("a", "b", "c"))
chk_items_length_k(x = x,
                   k = 3L,
                   name = "x")

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