Learn R Programming

foodwebWrapper (version 1.1.0)

spanTag: spanTag

Description

Add html tag for package name to span multiple columns. Also insert hyperlink to CRAN package and function documentation.

Usage

spanTag(v, direction = "COLSPAN", colorMap)

Value

returns a list whose components are

  • u return value of unique(v)

  • tab return value of table(v)

  • v2 character vector modified version of v containing html span tags

Arguments

v

character vector representing first row of m (excluding first 2 entries of m)

direction

character string COLSPAN or ROWSPAN

colorMap

character array of colors

Details

see https://www.pierobon.org/html/span.htm#:~:text=Cells%20within%20HTML%20tables%20can,span%20more%20than%20one%20column.

Examples

Run this code
if(interactive()){
load("data/x_m5.RData")
load("data/x_colorMap.RData")
l<-spanTag(x_m5[1,c(-1,-2)],"COLSPAN",x_colorMap)
}

Run the code above in your browser using DataLab