sfunction {dga} | R Documentation |
This is the simplest function ever. It's just an apply to sum across columns.
sfunction(x)
x |
capture histories, as numbers |
apply(x, 2, sum)
Kristian Lum kl@hrdag.org
## The function is currently defined as
sfunction <- function(x) {
out <- apply(x, 2, sum)
}