Description Usage Arguments Value Examples
Table
formats and prints data. Rows and columns are truncated to
fit on screen and columns are aligned.
1 2 |
x |
object to be printed |
n |
maximum number of rows to print. If 'ht', head and tail are printed |
align |
vector of characters describing column alignment. Accepts 'l' for left, 'r' for right, 'c' for center, 'd' for aligning on decimal place, 't' for left alignment and truncation, 'm' for truncating to the shortest character. 'auto' aligns center for characters and on the decimal place for numeric values. |
digits |
number of digits to which numeric values are rounded |
trunc |
character or numeric value. Character values of 'long' or 'col' are accepted. 'long' truncates the widest column if necessary, 'col' removes necessary columns. Numeric values specify which columns to truncate. |
rows |
logical. Are row numbers printed? |
sub |
vector to be printed under column names. If 'type', the type of each column is printed |
start |
starting row number of the data to print |
sep |
defaults to NULL. Row number after which to draw a line |
prints truncated table of data
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.