When pipelines are created without an initial term, the magrittr package (where the pipes originate) creates a specialised type of function called a fseq. However, magrittr doesn't do much with these fseq objects.

# S3 method for fseq
+(lhs, rhs)

# S3 method for fseq
length(x)

is.fseq(object)

is_fseq(object)

Arguments

lhs

fseq to be performed first

rhs

fseq to be performed second

x

an fseq object.

object

object to be tested.

Examples

a <- . %>% magrittr::add(2) %>% magrittr::divide_by(3) b <- . %>% rep(3) %>% sum() (a + b)(2)
#> [1] 4
(b + a)(2)
#> [1] 2.666667
length(a)
#> [1] 2
is.fseq(a)
#> [1] TRUE
is.fseq(mean)
#> [1] FALSE
is_fseq(a)
#> [1] TRUE
is_fseq(mean)
#> [1] FALSE