tidylists {SparseMSE} | R Documentation |
Produce a data matrix with a unique row for each capture history
Description
This routine finds rows with the same capture history and consolidates them into a single row whose count is the sum of counts of
the relevant rows. If includezerocounts = TRUE
then it also includes rows for all the capture histories with zero count; otherwise
these are all removed.
Usage
tidylists(zdat, includezerocounts = FALSE)
Arguments
zdat |
Data matrix with |
includezerocounts |
If |
Value
A data matrix in the form specified above, including all capture histories with zero counts if includezerocounts=TRUE
.
Examples
data(NewOrl)
zdat<-tidylists(NewOrl,includezerocounts=TRUE)