Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 257
7.3.4.3 The Assignment Pipe
ОглавлениеThis last variation of the pipe operator allows us to simplify the first line, by providing an assignment with a special piping operator.
x <- c(1,2,3) # The following line: x <- x %>% mean # is equivalent with the following: x %<>% mean # Show x: x ## [1] 2
Note that the original meaning of “x” is gone.