Learn R Programming

shinyr (version 0.3.0)

groupByandSumarize: Group By And Summarize

Description

Group by columns and summarize given data.

Usage

groupByandSumarize(df, grp_col, summarise_col, FUN = mean)

Arguments

df

data frame

grp_col

column name to group

summarise_col

column name to summarize

FUN

function to summarize

Value

summarized table

Details

groupByandSumarize

Examples

Run this code
# NOT RUN {
groupByandSumarize(mtcars, grp_col = c("am"), summarise_col = "hp", FUN = "mean")
# }

Run the code above in your browser using DataLab