Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_exposure_constant

Test in a well-formed argument to function 'survData' if the concentration is constant and different from NA for each replicate (each time-serie)


Description

Test in a well-formed argument to function 'survData' if the concentration is constant and different from NA for each replicate (each time-serie)

Usage

is_exposure_constant(x)

Arguments

x

an object of class data.frame

Value

a boolean TRUE if concentration in replicate is constant, or FALSE if the concentration in at least one of the replicates is time-variable, and/or if NA occures.

Examples

# (1) Load the survival data set and test if concentration in replicates is constant
data("propiconazole")
is_exposure_constant(propiconazole)
is_exposure_constant(survData(propiconazole))

 # (1) Load the survival data set and test if concentration in replicates is constant
data("propiconazole_pulse_exposure") 
is_exposure_constant(propiconazole_pulse_exposure)

morse

Modelling Tools for Reproduction and Survival Data in Ecotoxicology

v3.3.1
GPL (>= 2)
Authors
Virgile Baudrot [aut], Sandrine Charles [aut], Marie Laure Delignette-Muller [aut], Wandrille Duchemin [ctb], Benoit Goussen [ctb], Nils Kehrein [ctb], Guillaume Kon-Kam-King [ctb], Christelle Lopes [ctb], Philippe Ruiz [aut], Alexander Singer [ctb], Philippe Veber [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.