Learn R Programming

fdth (version 1.1-8)

print: Print Method for latex.fdt Objects

Description

Returns (and prints) a summary list for latex.fdt objects.

Usage

## S3 method for class 'latex.fdt':
print(x, \dots)

Arguments

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

See Also

latex.fdt

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