If the concentrations or times are invalid, will provide an error. Reasons for being invalid are
time
is not a numberconc
is not a numberAny
time
value is NAtime
is not monotonically increasingconc
andtime
are not the same length
Usage
assert_conc(conc, any_missing_conc = TRUE)
assert_time(time, sorted_time = TRUE)
assert_conc_time(conc, time, any_missing_conc = TRUE, sorted_time = TRUE)
Arguments
- conc
Measured concentrations
- any_missing_conc
Are any concentration values allowed to be
NA
?- time
Time of the measurement of the concentrations
- sorted_time
Must the time be unique and monotonically increasing?