Created
April 17, 2020 01:56
-
-
Save seasmith/2556c1eeef1c79dcc09f043b97f6127d to your computer and use it in GitHub Desktop.
Apply aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply_rows <- function (x, fun, ...) apply(x, 1, fun, ...) | |
apply_columns <- function (x, fun, ...) apply(x, 2, fun, ...) | |
apply_groups <- function (x, groups, fun, ...) tapply(x, groups, fun, ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment