Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 251

Note – Equivalence of piping and nesting

Оглавление

# The following line

c <- a %>%

f()

# is equivalent with:

c <- f(a)

# Also, it is easy to see that

x <- a %>% f(y) %>% g(z)

# is the same as:

x <- g(f(a, y), z)

The Big R-Book

Подняться наверх