Last data update: 2014.03.03

R: Exporting "cbind.mytable","mytable" to LaTeX format
mylatexR Documentation

Exporting "cbind.mytable","mytable" to LaTeX format

Description

Exporting "cbind.mytable","mytable" to LaTeX format

Usage

mylatex(myobj, size = 5, caption = NULL, caption.placement = "top",
  caption.position = "c")

## Default S3 method:
mylatex(myobj, size = 5, caption = NULL,
  caption.placement = "top", caption.position = "c")

## S3 method for class 'mytable'
mylatex(myobj, size = 5, caption = NULL,
  caption.placement = "top", caption.position = "c")

## S3 method for class 'cbind.mytable'
mylatex(myobj, size = 5, caption = NULL,
  caption.placement = "top", caption.position = "c")

Arguments

myobj

An object of class 'mytable'

size

An integer indicating font size, defaulting is 5.

caption

A character

caption.placement

The caption will be have placed at the top of the table if caption.placement is "top" and at the bottom of the table if it equals "bottom". Default value is "top".

caption.position

The caption will be have placed at the center of the table if caption.position is "center" or "c", and at the left side of the table if it equals "left" or "l", and at the right side of the table if it equals "right" or "r". Default value is "center".

Methods (by class)

  • default:

  • mytable:

  • cbind.mytable:

Examples

require(moonBook)
out=mytable(sex~.,data=acs)
mylatex(out)
out1=mytable(sex+Dx~.,data=acs)
mylatex(out1,size=6)

Results