myhtml {moonBook} | R Documentation |
Export to html file for class "mytable" or "cbind.mytable" of "data.frame"
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)
x |
An object of class "mytable" or "cbind.mytable" |
caption |
A character |
rownames |
A logical value whether or not include rownames in table |
default
:
mytable
:
cbind.mytable
:
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)