Learn R Programming

fdth (version 1.2-1)

summary.latex.fdt: Summary method for latex.fdt and latex.fdt_cat objects

Description

Returns a summary list for latex.fdt and latex.fdt_cat objects.

Usage

## S3 method "summary"(object, ...)

Arguments

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

See Also

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)

summary(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')

summary(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')

summary(t3x)

Run the code above in your browser using DataLab