pipe: Pipe

Description Arguments Examples

Description

Use the pipe function, %>% to turn function composition into a series of imperative statements.

Use the double pipe function, %<>% to turn function composition into a series of imperative statements.

Use the .data when writing functions that use piping with dplyr to avoid lazy eval issues and get informative error messages

Arguments

lhs, rhs

Pipe the output of lhs to the first input of rhs

lhs, rhs

Pipe the output of lhs to the first input of rhs and assign to the left hand side

Examples

1
2
3
4
1 %>% `+`(1)
a = 1
a %<>% `+`(1)
a

biodatacore/biodatacoreMTM documentation built on May 12, 2019, 8:41 a.m.