zebra: zebra

View source: R/zebra.R

zebraR Documentation

zebra

Description

zebra

Usage

zebra(x, col = c("#FFFFFF", "#CCCCCC"), byrow = TRUE)

Arguments

x

html_matrix object

col

a vector of colors to zebra with (default:c("#FFFFFF", "#CCCCCC"))

byrow

logical: zebra by row or by column (default: TRUE)

Value

html_matrix object

Examples

library("magrittr")
library("tools")
m    <- matrix(1:12, ncol=4)
hm   <- html_matrix(m) %>% zebra()
html <- toHTML(hm, browser=interactive())

HKRbook documentation built on Oct. 6, 2022, 9:06 a.m.