]> git.donarmstrong.com Git - xtable.git/commitdiff
Add some newlines in the Rd files. In the PDF version of the help the lines were...
authorroosen <roosen@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Fri, 7 Oct 2011 07:12:18 +0000 (07:12 +0000)
committerroosen <roosen@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Fri, 7 Oct 2011 07:12:18 +0000 (07:12 +0000)
git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@11 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/man/print.xtable.Rd
pkg/man/xtable.Rd

index 613ea8dbfecf51303c8cdadb2662e2faaea28d5f..0e32eb4eebddcefdd67be28f551eda226d93980d 100644 (file)
@@ -2,7 +2,15 @@
 \alias{print.xtable}
 \title{Print Export Tables}
 \description{Function returning and displaying or writing to disk the LaTeX or HTML code associated with the supplied object of class \code{xtable}.}
-\usage{\method{print}{xtable}(x, type="latex", file="", append=FALSE, floating=TRUE, floating.environment="table", table.placement = "ht", caption.placement="bottom", latex.environments=c("center"),tabular.environment = "tabular", size=NULL,hline.after=c(-1,0,nrow(x)), NA.string = "", include.rownames=TRUE, include.colnames=TRUE, only.contents=FALSE, add.to.row=NULL, sanitize.text.function=NULL, sanitize.rownames.function=sanitize.text.function, sanitize.colnames.function=sanitize.text.function, math.style.negative=FALSE, html.table.attributes="border=1", ...)}
+\usage{
+       \method{print}{xtable}(x, type="latex", file="", append=FALSE, floating=TRUE, 
+               floating.environment="table", table.placement = "ht", caption.placement="bottom", 
+               latex.environments=c("center"),tabular.environment = "tabular", size=NULL,
+               hline.after=c(-1,0,nrow(x)), NA.string = "", include.rownames=TRUE, 
+               include.colnames=TRUE, only.contents=FALSE, add.to.row=NULL, 
+               sanitize.text.function=NULL, sanitize.rownames.function=sanitize.text.function,
+               sanitize.colnames.function=sanitize.text.function, math.style.negative=FALSE, 
+               html.table.attributes="border=1", ...)}
 \arguments{
   \item{x}{An object of class \code{"xtable"}.}
   \item{type}{Type of table to produce.  Possible values for \code{type} are \code{"latex"} or \code{"html"}.
index ab9c7ca63d35fe4eec3f23088e1419d8f35c0b4b..4122518eb7470021d5efd57aaf191216f386ebce 100644 (file)
@@ -231,7 +231,8 @@ addtorow$pos <- list()
 addtorow$pos[[1]] <- c(0, 2)
 addtorow$pos[[2]] <- 4
 addtorow$command <- c('\\vspace{2mm} \n', '\\vspace{10mm} \n')
-print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE, only.contents=TRUE, hline.after=c(0, 0, 9, 9))
+print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE, 
+  only.contents=TRUE, hline.after=c(0, 0, 9, 9))
 
 ## Demostrate include.rownames, include.colnames, 
 ## only.contents and add.to.row arguments in Rweave files
@@ -259,7 +260,8 @@ print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE,
  addtorow$pos[[1]] <- c(seq(4, 40, 5), seq(49, 85, 5))
  addtorow$pos[[2]] <- 45
  addtorow$command <- c('\\vspace{2mm} \n', '\\newpage \n')
- print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=F ALSE, only.contents=TRUE, hline.after=NULL)
+ print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=FALSE, 
+   only.contents=TRUE, hline.after=NULL)
  @
  \end{longtable}
  \end{small}
@@ -295,11 +297,14 @@ print(xtable(mat), type="latex", sanitize.text.function = function(x){x})
     print(xtable(anova(lm.D9)),type=i,file=outFileName,append=TRUE)
     print(xtable(glm.D93),type=i,file=outFileName,append=TRUE)
     print(xtable(anova(glm.D93,test="Chisq")),type=i,file=outFileName,append=TRUE)
-    print(xtable(glm.D93,align="r|llrc"),include.rownames=FALSE,include.colnames=TRUE,type=i,file=outFileName,append=TRUE)
-    print(xtable(glm.D93,align="r||llrc"),include.rownames=TRUE,include.colnames=FALSE,type=i,file=outFileName,append=TRUE)
-    print(xtable(glm.D93,align="|r||llrc"),include.rownames=FALSE,include.colnames=FALSE,type=i,file=outFileName,append=TRUE)
+    print(xtable(glm.D93,align="r|llrc"),include.rownames=FALSE,include.colnames=TRUE,
+      type=i,file=outFileName,append=TRUE)
+    print(xtable(glm.D93,align="r||llrc"),include.rownames=TRUE,include.colnames=FALSE,
+      type=i,file=outFileName,append=TRUE)
+    print(xtable(glm.D93,align="|r||llrc"),include.rownames=FALSE,include.colnames=FALSE,
+      type=i,file=outFileName,append=TRUE)
     print(xtable(glm.D93,align="|r||llrc|"),type=i,file=outFileName,append=TRUE)
-    print(xtable(anova(glm.D93)),hline.after=c(1),size="small",type=i,file=outFileName,append=TRUE)
+    print(xtable(anova(glm.D93)),hline.after=c(1),size="small",type=i,file=outFileName, append=TRUE)
     if(require(stats,quietly=TRUE)) {
       print(xtable(pr1),type=i,file=outFileName,append=TRUE)
       print(xtable(summary(pr1)),type=i,file=outFileName,append=TRUE)
@@ -307,8 +312,10 @@ print(xtable(mat), type="latex", sanitize.text.function = function(x){x})
     }
     temp.table <- xtable(ts(cumsum(1+round(rnorm(100), 2)), start = c(1954, 7), frequency=12))
     caption(temp.table) <- "Time series example"
-    print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="top",table.placement="h")
-    print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="bottom",table.placement="htb")
+    print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="top",
+      table.placement="h")
+    print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="bottom",
+      table.placement="htb")
   }
 }