Learn R Programming

shinyr (version 0.4.2)

groupByandSumarize: Group By And Summarize

Description

Group by columns and summarize given data.

Usage

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

Value

summarized table

Arguments

df

data frame

grp_col

column name to group

summarise_col

column name to summarize

FUN

function to summarize

Author

Jayachandra N

Details

groupByandSumarize

Examples

Run this code
groupByandSumarize(mtcars, grp_col = c("am"), summarise_col = "hp",
FUN = "mean")

Run the code above in your browser using DataLab