Learn R Programming

moonBook (version 0.3.1)

myhtml: 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)

# S3 method for default myhtml(x, caption = NULL, rownames = TRUE)

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

# S3 method for 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)

  • default:

  • mytable:

  • cbind.mytable:

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab