spanTag: spanTag

View source: R/foodweb.R

spanTagR Documentation

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)

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.

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

Examples

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


foodwebWrapper documentation built on June 22, 2024, 12:26 p.m.