assert_unit_col {PKNCA}R Documentation

Assert that a value may either be a column name in the data (first) or a single unit value (second)

Description

Assert that a value may either be a column name in the data (first) or a single unit value (second)

Usage

assert_unit_col(unit, data)

assert_unit_value(unit)

assert_unit(unit, data)

Arguments

unit

The column name or unit value

data

The data.frame that contains a column named unit

Value

unit with an attribute of "unit_type" that is either "column" or "value", or NULL if is.null(unit)

Functions


[Package PKNCA version 0.12.0 Index]