powered by
Group by columns and summarize given data.
groupByandSumarize(df, grp_col, summarise_col, FUN = mean)
summarized table
data frame
column name to group
column name to summarize
function to summarize
Jayachandra N
groupByandSumarize
groupByandSumarize(mtcars, grp_col = c("am"), summarise_col = "hp", FUN = "mean")
Run the code above in your browser using DataLab