validate_list_input: Validate list inputs into the tabulate functions

View source: R/validation_utils.R

validate_list_inputR Documentation

Validate list inputs into the tabulate functions

Description

Validate list inputs into the tabulate functions

Usage

validate_list_input(x, values, variable_name, prefix = "Value", make_names = T)

Arguments

x

list or a vector. The instructions/groupings to be validated. Note: a vector is turned into a list.

values

vector. The values of the column that the instructions in x are relevant for.

variable_name

character. T

prefix

character of length 1. Prefix to be added to the automatic naming process.

make_names

logical. Should names be added to x if they don't exist already.

Value

A validated list input, optionally with names.


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.