Learn R Programming

htmlTable (version 2.4.3)

hasHtmlTableStyle: Check if object has a style set to it

Description

If the attribute htmlTable.style is set it will check if the style_name exists and return a logical.

Usage

hasHtmlTableStyle(x, style_name)

Value

logical

TRUE if the attribute and style is not NULL

Arguments

x

The object intended for htmlTable().

style_name

A string that contains the style name.

See Also

Other htmlTableStyle: addHtmlTableStyle()

Examples

Run this code
library(magrittr)

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

Run the code above in your browser using DataLab