posum.check {posum} | R Documentation |
Performs simple checks on the input data for posum: mostly just checking that there are
no missing values where they are not allowed. Returns TRUE
if dataframe contains adult data, FALSE
otherwise.
posum.check(data)
data |
A data frame containing the following named variables:
NA 's:
a feature whose prime function is to allow the user to
supply extra information about stage boundaries, if
needed.y relates to.NA
implies an adult stage. If an element is equal to the
corresponding a0 element then the corresponding
y is taken as a direct observation of the population
surface height (rather than the usual integral under it.) |
Missing stage populaiton data is allowed in the input dataframe to posum
, but missing age
boundaries and sample times are not (except for upper boundary of an adult stage). This routine checks an input
datafraem for illegal missing values.
Returns TRUE
if data
contains information on an adult (indeterminate duration) stage,
FALSE
otherwise. Will stop with an error if illegal missing values are encountered.
Simon N. Wood snw@st-and.ac.uk
http://www.ruwpa.st-and.ac.uk/simon.html
data<-population.data(fam="p",adult=TRUE) #simulate data posum.check(data)