assert_conc | R Documentation |
If the concentrations or times are invalid, will provide an error. Reasons for being invalid are
time
is not a number
conc
is not a number
Any time
value is NA
time
is not monotonically increasing
conc
and time
are not the same length
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)
conc |
Measured concentrations |
any_missing_conc |
Are any concentration values allowed to be |
time |
Time of the measurement of the concentrations |
sorted_time |
Must the time be unique and monotonically increasing? |
Some cases may generate warnings but allow the data to proceed.
A negative concentration is often but not always an error; it will generate a warning.
conc
or give an informative error
time
or give an informative error
A data.frame with columns named "conc" and "time" or an informative error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.