Learn R Programming

tables (version 0.5)

RowFactor: Use a variable as a factor to give rows in a table.

Description

This takes a variable and treats it as a factor in a table. It adds extra spacing to make the table more readable.

Usage

RowFactor(x, name = deparse(substitute(x)), spacing = 3, space = 1,
          nopagebreak = "\\nopagebreak ")

Arguments

Value

Language to insert into the table formula to achieve the desired table.

Details

This function is only useful for LaTeX output.

Examples

Run this code
latex( tabular( RowFactor(1:10, "", 5)  ~ 
       All(iris[1:10,])*Heading()*identity ))

Run the code above in your browser using DataLab