View source: R/lifetable_data.R
| lifeTable_check | R Documentation |
Checks the age data (illegal characters, negative values, illegal gaps) and verifies for every female that the number of her oviposition records matches her recorded survival days. If a problem is found, the function stops and reports the exact row and column positions of all offending cells.
lifeTable_check(lt)
lt |
A |
Two kinds of problems are detected:
age data errors: cells in the stage-duration and survival-day columns that contain illegal characters or negative values, or illegal gaps within a sequence of values;
oviposition errors: for every female row, the number
of non-empty daily fecundity cells must equal the adult survival
days recorded in column n - 1.
The check runs automatically inside lifeTable_read
unless check = FALSE is used there.
invisible(TRUE) if no error is found; otherwise the
function stops with a detailed error message.
lifeTable_read
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.