Learn R Programming

dga (version 2.0.1)

cfunction: A Helper Function for make.strata

Description

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

Usage

cfunction(x, nlist)

Value

a table of the number of records with each capture history

Arguments

x

capture histories, transformed from binary to decimal

nlist

the number of lists

Author

Kristian Lum kl@hrdag.org

Examples

Run this code


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

Run the code above in your browser using DataLab