Learn R Programming

dga (version 2.0.1)

sfunction: A Helper Function for make.strata.

Description

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

Usage

sfunction(x)

Arguments

x

capture histories, as numbers

Value

apply(x, 2, sum)

Examples

Run this code
# NOT RUN {


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

Run the code above in your browser using DataLab