Internal Helper Functions for Validation of GeneralData
Objects
Source: R/Data-validity.R
v_data_objects.Rd
These functions are only used internally to validate the format of an input
GeneralData
or inherited classes and therefore not exported.
Usage
v_general_data(object)
h_doses_unique_per_cohort(dose, cohort)
v_data(object)
v_data_dual(object)
v_data_parts(object)
v_data_mixture(object)
v_data_da(object)
v_data_ordinal(object)
v_data_grouped(object)
Value
A character
vector with the validation failure messages,
or TRUE
in case validation passes.
TRUE
if dose
is unique per cohort
, otherwise FALSE
.
Functions
v_general_data()
: validates that theGeneralData
object contains uniqueID
, non-negativecohort
indices andID
andcohort
vectors are of the same lengthnObs
.h_doses_unique_per_cohort()
: helper function which verifies whether thedose
values are unique in each and every differentcohort
.v_data()
: validates that theData
object contains valid elements with respect to their types, dependency and length.v_data_dual()
: validates that theDataDual
object contains valid biomarker vector with respect to its type and the length.v_data_parts()
: validates that theDataParts
object contains valid elements with respect to their types, dependency and length.v_data_mixture()
: validates that theDataMixture
object contains valid elements with respect to their types, dependency and length.v_data_da()
: validates that theDataDA
object contains valid elements with respect to their types, dependency and length.v_data_ordinal()
: validates that theDataOrdinal
object contains valid elements with respect to their types, dependency and length.v_data_grouped()
: validates that theDataGrouped
object contains valid group information.