peek: Perform side effect

Description Usage Arguments Examples

View source: R/peek.R

Description

Perform side effect

Usage

1
peek(object, fun = function(x, ...) x, ...)

Arguments

object

An R object

fun

a function that can be applied to object

...

additional arguments to fun

Examples

1
2
3
4
5
6
if (require(dplyr)) {
  iris %>%
  peek(slice_sample, n = 3) %>%
  group_by(Species) %>%
  summarise(n = n())
}

rpruim/CalvinBayes documentation built on April 12, 2021, 1:49 p.m.