myapply: myapply is a modified version of the apply function, but it...

Description Usage Arguments Value Examples

View source: R/myapply.R

Description

myapply is a modified version of the apply function, but it only works on margin = 1 and 2

Usage

1
myapply(X, MARGIN, FUN, ...)

Arguments

X

the array to apply the function over

MARGIN

1 for rows and 2 for columns

FUN

the function to apply over

Value

the modified array

Examples

1
2
3
4
## Not run: 
 myapply(x, 1, mean)

## End(Not run)

jnumainville/JoeNumainvilleTools documentation built on May 25, 2019, 6:24 p.m.