%T>% | R Documentation |
Pipe a value forward into a function- or call expression and return the original value instead of the result. This is useful when an expression is used for its side-effect, say plotting or printing.
lhs %T>% rhs
lhs |
A value or the magrittr placeholder. |
rhs |
A function call using the magrittr semantics. |
The tee pipe works like %>%
, except the
return value is lhs
itself, and not the result of rhs
function/expression.
%>%
, %<>%
, %$%
rnorm(200) %>% matrix(ncol = 2) %T>% plot %>% # plot usually does not return anything. colSums
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.