printCell: printCell

View source: R/XPSUtilities.r

printCellR Documentation

printCell

Description

printCell prints data in a table constructed by MakeTable() Borders are made using ascii characters - and |

Usage

printCell(Type, txt, CellB, CellLength, align)

Arguments

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

Examples

## 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)

GSperanza/RxpsG_2.3-1 documentation built on Feb. 11, 2024, 5:09 p.m.