cfunction: A Helper Function for make.strata

Description Usage Arguments Value Author(s) Examples

View source: R/stratify_functions.R

Description

A helper function used in make.strata to make list overlap counts.

Usage

1
cfunction(x, nlist)

Arguments

x

capture histories, transformed from binary to decimal

nlist

the number of lists

Value

a table of the number of records with each capture history

Author(s)

Kristian Lum kl@hrdag.org

Examples

1
2
3
4
## The function is currently defined as
cfunction <- function(x, nlist) {
  out <- table(c(x, 0:(2^nlist - 1))) - 1
}

dga documentation built on May 10, 2021, 5:06 p.m.