printTabStyle {PhenStat} | R Documentation |
Makes ready list of strings to be printed in tabular form, creates a table row from it. Adds empty positions if needed in order to make all strings the same by length and adds "tabSep" character between strings. Returns text that is ready to be printed (one row of a table).
printTabStyle(textList,positions,tabSep="|")
textList |
list of strings to prepare |
positions |
desired length of one cell in the table |
tabSep |
character used to separate columns in the table; default value is "|" |
Returns text that is ready to be printed (one row of a table).
Natalja Kurbatova
row_sep <- rep("----------",3) print(PhenStat:::printTabStyle(row_sep,11)) list1 <- c("Owner","Model","Cc") print(PhenStat:::printTabStyle(list1,11)) print(PhenStat:::printTabStyle(row_sep,11)) list2 <- c("Natalja","Honda","125") print(PhenStat:::printTabStyle(list2,11)) print(PhenStat:::printTabStyle(row_sep,11))