pipe: Pipe css

%>%R Documentation

Pipe css

Description

Like dplyr and ggvis, tableHTML also uses the pipe function, %>% to chain css functions. The pipe function originally came from the magrittr package.

Arguments

lhs, rhs

A tableHTML and a function to apply to it

Examples

# 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'))) 

tableHTML documentation built on April 18, 2023, 1:11 a.m.