Learn R Programming

moonBook (version 0.3.1)

mylatex: 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"
)

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

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

# S3 method for 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: Exporting "cbind.mytable","mytable" to LaTeX format

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

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

Examples

Run this code
# NOT RUN {
require(moonBook)
out=mytable(sex~.,data=acs)
mylatex(out)
out1=mytable(sex+Dx~.,data=acs)
mylatex(out1,size=6)
# }

Run the code above in your browser using DataLab