Relative Content

Tag Archive for rdplyrscopedata-wranglingmagrittr

Behavior of %>% when piping values to functions containing pipes

The below examples demonstrate that passing an object to deparse() and substitute() produces different output depending on whether the object is passed to the function with %>% and whether the functions are nested in another function. Can someone explain why the examples I provide produce different results? The more general question concerns what%>% does when it passes objects to functions containing %>%.

Behavior of %>% when piping values to functions containing pipes

The below examples demonstrate that passing an object to deparse() and substitute() produces different output depending on whether the object is passed to the function with %>% and whether the functions are nested in another function. Can someone explain why the examples I provide produce different results? The more general question concerns what%>% does when it passes objects to functions containing %>%.