check.conc.time: Verify that the concentration and time are valid

View source: R/general.functions.R

check.conc.timeR Documentation

Verify that the concentration and time are valid

Description

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

Usage

check.conc.time(conc, time, monotonic.time = TRUE)

Arguments

conc

Measured concentrations

time

Time of the measurement of the concentrations

monotonic.time

Must the time be unique and monotonically increasing?

Details

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.

Value

None


PKNCA documentation built on April 30, 2023, 1:08 a.m.