R
magrittr 패키지의 tee pipe operator : %T>%
이부일
2018. 8. 24. 16:23
magrittr 패키지에서 제공하는 tee pipe(%T>%)의 기능은 pipe(%>%)와 다음과 같은 차이가 있다.
# str()의 결과가 없다.
rnorm(100) %>%
matrix(ncol = 2) %>%
plot() %>%
str()
# str()의 결과가 출력된다.
rnorm(100) %>%
matrix(ncol = 2) %T>%
plot() %>%
str()
[출처] R for Data Science, Hadley Wickham & Garrett Grolemund, O'REILLY, p267