Description Usage Arguments Value Examples
Get a FlexTable
object from
a xtable
object.
1 2 3 4 |
x |
|
text.properties |
default text formatting properties |
format.args |
List of arguments for the formatC function.
See argument |
hline.after |
a vector of numbers between -1 and "nrow(x)",
inclusive, indicating the rows after which a horizontal line should appear.
see argument |
padding.left |
cells paragraphs left padding - 0 or positive integer value. |
padding.right |
cells paragraphs right padding - 0 or positive integer value. |
... |
further arguments, not used. |
a FlexTable
object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #
data(tli)
tli.table <- xtable(tli[1:10,])
digits(tli.table)[c(2,6)] <- 0
FT = as.FlexTable( x = tli.table )
print( FT )
if( interactive() ) readline("Hit <Return> to see next FlexTable:")
align(tli.table) <- "|rrl|l|lr|"
FT = as.FlexTable( x = tli.table )
print( FT )
if( interactive() ) readline("Hit <Return> to see next FlexTable:")
fm1 <- aov(tlimth ~ sex + ethnicty + grade + disadvg, data=tli)
fm1.table <- xtable(fm1)
FT = as.FlexTable( x = fm1.table )
print( FT )
if( interactive() ) readline("Hit <Return> to see next FlexTable:")
bktbs <- xtable(matrix(1:10, ncol = 2))
hlines <- c(-1,0,1,nrow(bktbs))
FT = as.FlexTable(bktbs, hline.after = hlines )
print( FT )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.