R/mf.R
mf_tapply.Rd
a friendly version of tapply for dataframes. in and out: same as tapply(). the built-in function tapply returns a matrix with unfriendly row name and colname. mf-tapply returns a friendly dataframe
mf_tapply(data, select = names(data), myfactor, ..., na.rm = c(TRUE, FALSE, NULL)[1])
data | dataframe |
---|---|
select | character, column names to calc |
myfactor | a colname as factor |
a dataframe