View source: R/group_by_and_summarize.R
groupByandSumarize | R Documentation |
Group by columns and summarize given data.
groupByandSumarize(df, grp_col, summarise_col, FUN = mean)
df |
data frame |
grp_col |
column name to group |
summarise_col |
column name to summarize |
FUN |
function to summarize |
groupByandSumarize
summarized table
Jayachandra N
groupByandSumarize(mtcars, grp_col = c("am"), summarise_col = "hp",
FUN = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.