Literal: Insert a literal entry into a table margin.

Description Usage Arguments Details Value See Also Examples

View source: R/Hline.R

Description

This allows insertion of arbitrary LaTeX text into a table.

Usage

1

Arguments

x

A character string to insert.

Details

In LaTeX the literal string should usually end with a % comment character to avoid having a blank line inserted.

Value

Produces an expression to insert a label containing the literal text.

See Also

Hline, which uses this to insert lines.

Examples

1
2
tabular( (Literal("Some text") + Species)  ~ 
       All(iris)*mean, data=iris )

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

                                                                     
                    Sepal.Length Sepal.Width Petal.Length Petal.Width
                    mean         mean        mean         mean       
         Some text                                                   
 Species setosa     5.006        3.428       1.462        0.246      
         versicolor 5.936        2.770       4.260        1.326      
         virginica  6.588        2.974       5.552        2.026      

tables documentation built on May 30, 2017, 4:19 a.m.