Learn R Programming

htmlTable (version 2.4.3)

getHtmlTableStyle: Get style options for object

Description

A wrap around the base::attr() that retrieves the style attribute used by htmlTable() (htmlTable.style).

Usage

getHtmlTableStyle(x)

Value

A list if the attribute exists, otherwise NULL

Arguments

x

The object intended for htmlTable().

Examples

Run this code
library(magrittr)

mx <- matrix(1:4, ncol = 2)
colnames(mx) <- LETTERS[1:2]
mx %>%
  addHtmlTableStyle(align = "l|r") %>%
  getHtmlTableStyle()

Run the code above in your browser using DataLab