%>% | R Documentation |
Like dplyr and ggvis, tableHTML also uses the pipe function, %>%
to chain
css functions. The pipe function originally came from the magrittr package.
lhs, rhs |
A tableHTML and a function to apply to it |
# Instead of
add_css_row(tableHTML(mtcars),
css = list(c('background-color', 'border'), c('lightgray', '3px solid green')))
# you can write
mtcars %>%
tableHTML() %>%
add_css_row(css = list(c('background-color', 'border'), c('lightgray', '3px solid green')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.