printTabStyle: Method "printTabStyle"

Description Usage Arguments Value Author(s) Examples

View source: R/TFFramework.R

Description

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

Usage

1
    printTabStyle(textList,positions,tabSep="|")

Arguments

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 "|"

Value

Returns text that is ready to be printed (one row of a table).

Author(s)

Natalja Kurbatova

Examples

1
2
3
4
5
6
7
8
    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))

PhenStat documentation built on Nov. 8, 2020, 8:13 p.m.