cfunction {dga}R Documentation

A Helper Function for make.strata

Description

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

Usage

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



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

[Package dga version 2.0.1 Index]