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)

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

Examples

Run this code
# NOT RUN {

## 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