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])

Arguments

data

dataframe

select

character, column names to calc

myfactor

a colname as factor

Value

a dataframe

Examples