code associated with the supplied object of class \code{xtable}.\r
}\r
\usage{\r
-\method{print}{xtable}(x, \r
+\method{print}{xtable}(x,\r
type = getOption("xtable.type", "latex"),\r
file = getOption("xtable.file", ""),\r
append = getOption("xtable.append", FALSE),\r
only.contents = getOption("xtable.only.contents", FALSE),\r
add.to.row = getOption("xtable.add.to.row", NULL),\r
sanitize.text.function = getOption("xtable.sanitize.text.function", NULL),\r
- sanitize.rownames.function = getOption("xtable.sanitize.rownames.function", \r
+ sanitize.rownames.function = getOption("xtable.sanitize.rownames.function",\r
sanitize.text.function),\r
- sanitize.colnames.function = getOption("xtable.sanitize.colnames.function", \r
+ sanitize.colnames.function = getOption("xtable.sanitize.colnames.function",\r
sanitize.text.function),\r
math.style.negative = getOption("xtable.math.style.negative", FALSE),\r
html.table.attributes = getOption("xtable.html.table.attributes",\r
Default value is \code{TRUE}. }\r
\item{floating.environment}{If \code{floating=TRUE} and\r
\code{type="latex"}, the resulting table uses the specified floating\r
- environment. Possible values include \code{"table"}, \code{"table*"}, \r
+ environment. Possible values include \code{"table"}, \code{"table*"},\r
and other floating environments defined in LaTeX packages.\r
Default value is \code{"table"}.}\r
\item{table.placement}{If \code{floating=TRUE} and\r
\code{tabularx}. Note that table width specification is not\r
supported with the \code{tabular} or \code{longtable} environments. }\r
\item{comment}{If \code{TRUE}, the version and timestamp comment is\r
- included. Default value is \code{TRUE}. } \r
+ included. Default value is \code{TRUE}. }\r
\item{timestamp}{Timestamp to include in LaTeX comment. Set this\r
- to \code{NULL} to exclude the timestamp. Default value is \code{date()}. } \r
+ to \code{NULL} to exclude the timestamp. Default value is \code{date()}. }\r
\item{...}{Additional arguments. (Currently ignored.) }\r
}\r
\details{\r
This function displays or writes to disk the code to produce a table\r
- associated with an object \code{x} of class \code{"xtable"}. \r
+ associated with an object \code{x} of class \code{"xtable"}.\r
The resulting code is either a LaTeX or HTML table, depending on the\r
value of \code{type}. The function also (invisibly) returns a\r
character vector of the results (which can be helpful for\r
Since version 1.4 the non default behavior of \code{hline.after} is\r
changed. To obtain the same results as the previous versions add to\r
the \code{hline.after} vector the vector \code{c(-1, 0, nrow(x))}\r
- where \code{nrow(x)} is the numbers of rows of the object. \r
+ where \code{nrow(x)} is the numbers of rows of the object.\r
\r
From version 1.4-3, all non-numeric columns are sanitized, and all\r
LaTeX special characters are sanitised for LaTeX output. See Section\r
3 of the \code{xtableGallery} vignette for an example of customising\r
the sanitization. From version 1.4-4, the sanitization also applies to\r
column names. To remove any text sanitization, specify\r
- \code{sanitize.text.function=function(x){x}}. \r
- \r
+ \code{sanitize.text.function=function(x){x}}.\r
+\r
From version 1.6-1 the default values for the arguments other than\r
\code{x} are obtainined using \code{getOption()}. Hence the user can\r
set the values once with \code{options()} rather than setting them in\r
arguments. The recommended approach is to specify \code{digits} supply\r
the argument \code{digits} to \code{xtable}, and to specify\r
\code{format} supply the argument \code{display} to \code{xtable}. See\r
- the examples. \r
+ the examples.\r
}\r
\author{\r
- David Dahl \email{dahl@stat.tamu.edu} with contributions and\r
+ David Dahl \email{dahl@stat.byu.edu} with contributions and\r
suggestions from many others (see source code).\r
}\r
\references{\r
Web. \url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=longtab}\r
}\r
\seealso{\r
- \code{\link{xtable}}, \code{\link{caption}}, \code{\link{label}}, \r
+ \code{\link{xtable}}, \code{\link{caption}}, \code{\link{label}},\r
\code{\link{align}}, \code{\link{digits}}, \code{\link{display}},\r
- \code{\link{formatC}} \r
+ \code{\link{formatC}}\r
}\r
\r
\examples{\r