composing: composing tag to start a dollar piped functional sequence

Description Arguments Value Examples

Description

composing is a tag wrapped around magrittr's functional sequence feature. It works in similar ways except that it uses $ rather than %>% and doesn't start with a dot.

Arguments

x

a function

Value

a tagged function

Examples

1
2
3
4
5
## Not run: 
composing()(head)$dim()(iris)
composing$head(2)$gsub("h","X",.)(c("hello","hi","foo"))

## End(Not run)

moodymudskipper/tags documentation built on June 25, 2019, 10:54 a.m.