Learn R Programming

HKRbook (version 0.1.3)

zebra: zebra

Description

zebra

Usage

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

Value

html_matrix object

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)

Examples

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

Run the code above in your browser using DataLab