powered by
Add html tag for package name to span multiple columns. Also insert hyperlink to CRAN package and function documentation.
spanTag(v, direction = "COLSPAN", colorMap)
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
character vector representing first row of m (excluding first 2 entries of m)
character string COLSPAN or ROWSPAN
character array of colors
see https://www.pierobon.org/html/span.htm#:~:text=Cells%20within%20HTML%20tables%20can,span%20more%20than%20one%20column.
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