myhtml: Export to html file for class "mytable" or "cbind.mytable" of...

View source: R/myhtml.R

myhtmlR Documentation

Export to html file for class "mytable" or "cbind.mytable" of "data.frame"

Description

Export to html file for class "mytable" or "cbind.mytable" of "data.frame"

Usage

myhtml(x, caption = NULL, rownames = TRUE)

## Default S3 method:
myhtml(x, caption = NULL, rownames = TRUE)

## S3 method for class 'mytable'
myhtml(x, caption = NULL, rownames = TRUE)

## S3 method for class 'cbind.mytable'
myhtml(x, caption = NULL, rownames = TRUE)

Arguments

x

An object of class "mytable" or "cbind.mytable"

caption

A character

rownames

A logical value whether or not include rownames in table

Methods (by class)

  • myhtml(default):

  • myhtml(mytable):

  • myhtml(cbind.mytable):

Examples

require(moonBook)
res=mytable(sex~age+Dx,data=acs)
myhtml(res)
res1=mytable(sex+Dx~.,data=acs)
myhtml(res1)
x=head(iris)
myhtml(x)
myhtml(x,caption="Table 1. myhtml Test")
myhtml(x,caption="Table 1. myhtml Test",rownames=FALSE)

cardiomoon/moonBook documentation built on Jan. 3, 2024, 8:15 p.m.