Learn R Programming

fdth (version 1.2-1)

print: Print method for latex.fdt and latex.fdt_cat objects

Description

Prints a summary list for latex.fdt latex.fdt_cat objects.

Usage

## S3 method "print"(x, ...)

Arguments

x
A given object of the class latex.fdt or latex.fdt_cat.
...
Optional further arguments (require by generic).

See Also

latex.fdt, latex.fdt_cat

Examples

Run this code
library(fdth)

##Example 1: The simplest possible
t1 <- fdt(rnorm(n=1e3,
                mean=10,
                sd=2))

t1x <- latex.fdt(t1)

t1x


## Example 2
(t1x <- latex.fdt(t1,
                  replace.breaks=FALSE,
                  columns=c(1:2, 4, 6)))


## Example 3
t2 <- fdt(rnorm(n=1e3,
                mean=10,
                sd=2),
          right=TRUE)

t2x <- latex.fdt(t2,
                 algtable='\\centering',
                 caption='Frequency distribution table 2',
                 label='tbl-2',
                 pattern='%.1f')

t2x


## Example 4
t3 <- fdt(rnorm(n=1e3,
                mean=10,
                sd=2))

t3x <- latex.fdt(t3,
                 algtable='\\flushright',
                 caption='Frequency distribution table 3',
                 label='tbl-3',
                 pattern='%.1e')

t3x

Run the code above in your browser using DataLab