printCell | R Documentation |
printCell prints data in a table constructed by MakeTable() Borders are made using ascii characters - and |
printCell(Type, txt, CellB, CellLength, align)
Type |
label for labels such as the title, separator to print a ———- like separator, tableRow to print a sequence of data in a table row |
txt |
the text to print, single string in label mode, an array of strungs in tableRow |
CellB |
cell border can be "|", " " or "" |
CellLength |
= in tableRow mode is an array containing the width (nchar) of each table column, in label mode it is the witdth of the tableRow (sum of column widths) |
align |
text alignment used in tableRow mode: left, center, right |
## Not run:
CellLgth<-c(12, 15, 8, 7, 8, 9)
cell<-printCell(Type="separator", txt="-", cellB="", CellLength=sum(CellLgth), align="")
txt<-"XPS Au24.vms"
cell<-printCell("label", txt, "|", sum(CellLgth), "")
txt<-c("Components", "Area(cps)", "FWHM", "RSF", "BE(eV)", "TOT.(%)") #Voci Tabella
cell<-printCell("tableRow", txt, "|", CellLgth, "center")
cell<-printCell("separator", "-", "|", sum(CellLgth), "")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.