buildIndTable: Convert capture counts to data frame with individuals

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

Description

Converts a vector of capture counts into a two-column data frame consisting of all individuals and the capture counts associated with each

Usage

1
buildIndTable(counts)

Arguments

counts

A vector of capture count data

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

buildClassTable, indToClass, classToInd

Examples

1
2
3
4
5
6
7
8
## create a vector of capture counts

mycounts <- c(1,1,1,1,1,2,2,3,3,4,5)

## build table 

data <- buildIndTable(mycounts)
data

capwire documentation built on May 2, 2019, 9:45 a.m.