peep | R Documentation |
peep some data at one step of a pipeline.
peep(data, ..., printer = print, verbose = FALSE)
data |
some data |
... |
function names or expressions that use |
printer |
which function use to print |
verbose |
TRUE to include what is printed |
the input data
if( require(magrittr) ){ # just symbols iris %>% peep(head,tail) %>% summary # expressions with . iris %>% peep(head(., n=2),tail(., n=3) ) %>% summary # or both iris %>% peep(head,tail(., n=3) ) %>% summary # use verbose to see what happens iris %>% peep(head,tail(., n=3), verbose = TRUE) %>% summary }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.