highlight2 | R Documentation |
Highlight a data.frame
highlight2(x, i = NULL, j = NULL, style = NULL, include.colname = FALSE)
x |
A data.frame |
i |
numeric rows to highlight |
j |
numeric columns to hightlight |
style |
A style function or NULL |
include.colname |
logical Whether or not include colname |
a data.frame
head(mtcars) %>% highlight2(i=3) %>% printdf()
library(crayon)
head(mtcars) %>% highlight2(i=2) %>% highlight2(j=3,style=blue$bold) %>% printdf()
fit=lm(mpg~wt*hp,data=mtcars)
gaze(fit)
gaze(fit) %>% highlight2(j=4,include.colname=TRUE)
gaze(fit) %>% highlight2(i=2,j=4) %>% highlight2(i=2,j=2:3,style=blue$bold)
gaze(fit) %>% highlight2(i=2) %>% highlight2(j=3,style=blue$bold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.