b_summarize: Reduces multiple values down to a single value

Description Usage Arguments Value Author(s) See Also Examples

View source: R/summarize.R

Description

Mimics dplyr::summarize using base R and rlang

Usage

1
2
3
4
5
6
7
b_summarize(.data, ...)

## Default S3 method:
b_summarize(.data, ...)

## S3 method for class 'split_df'
b_summarize(.data, ...)

Arguments

.data

data.frame

...

Name-value pairs of summary functions

Value

data.frame

Author(s)

Jonathan Sidi

See Also

quotation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
airquality%>%
  bplyr::b_group_by(Month)%>%
  bplyr::b_summarize(m = mean(Temp),m1 = max(Temp))

airquality%>%
  bplyr::b_group_by(Month,Day)%>%
  bplyr::b_summarize(m = mean(Temp),m1 = max(Temp))

airquality%>%
  bplyr::b_mutate(Month = factor(Month))%>%
  bplyr::b_group_by(Month)%>%
  bplyr::b_summarize(m = mean(Temp),m1 = max(Temp))

yonicd/bplyr documentation built on Feb. 24, 2020, 2 p.m.