classToInd: Convert a table of capture class data into a table of...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Converts a data frame where individuals are grouped by capture class into a data frame consisting of individuals and their associated capture counts.

Usage

1

Arguments

x

A two-column data frame with the first column specifiying the capture class (where all individuals in class i were caught i times) and the second column specifying the number of individuals in this capture class.

Details

This is primarily used as an internal function through capwire

Value

A two-column data frame with the first column specifiying the individual IDs and the second column specifying the number of times each individual was captured. Note here that the individual IDs are arbitrarily defined.

Author(s)

Matthew W. Pennell

References

Pennell M.W., C.R. Stansbury, L.P. Waits and C.R. Miller. submitted. capwire: A R Package for Estimating Population Census Size from Non-Invasive Genetic Sampling

See Also

buildIndTable, buildClassTable, indToClass

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## create a vector of capture counts

counts <- c(1,1,1,2,2,2,3,3,4)

## make into a table of classes

class.data <- buildClassTable(counts)

## convert to table of individuals

data <- classToInd(class.data)

data


Search within the capwire package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.