sfunction: A Helper Function for make.strata.

Description Usage Arguments Value Author(s) Examples

View source: R/stratify_functions.R

Description

This is the simplest function ever. It's just an apply to sum across columns.

Usage

1

Arguments

x

capture histories, as numbers

Value

apply(x, 2, sum)

Author(s)

Kristian Lum kl@hrdag.org

Examples

1
2
3
4
## The function is currently defined as
sfunction <- function(x) {
  out <- apply(x, 2, sum)
}

HRDAG/DGA documentation built on Dec. 17, 2021, 10:27 p.m.