spanTag | R Documentation |
Add html tag for package name to span multiple columns. Also insert hyperlink to CRAN package and function documentation.
spanTag(v, direction = "COLSPAN", colorMap)
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 |
see https://www.pierobon.org/html/span.htm#:~:text=Cells%20within%20HTML%20tables%20can,span%20more%20than%20one%20column.
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
if(interactive()){
load("data/x_m5.RData")
load("data/x_colorMap.RData")
l<-spanTag(x_m5[1,c(-1,-2)],"COLSPAN",x_colorMap)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.