powered by
## S3 method for class 'RTF': addTable(this, dat, col.widths=NULL, font.size=NULL, row.names=FALSE, NA.string="-", ...)
vector
RTF
rtf<-RTF("test.rtf.doc",width=8.5,height=11,font.size=10,omi=c(1,1,1,1)) addTable(rtf,as.data.frame(head(iris)),font.size=10,row.names=FALSE,NA.string="-", col.widths=rep(1,5)) done(rtf)
Run the code above in your browser using DataLab