]> git.donarmstrong.com Git - xtable.git/commitdiff
Explain 'pad' argument in formatHelpers.Rd, and link to this help page
authorarnima <arnima@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Fri, 26 Sep 2014 17:22:48 +0000 (17:22 +0000)
committerarnima <arnima@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Fri, 26 Sep 2014 17:22:48 +0000 (17:22 +0000)
git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@55 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/man/formatHelpers.Rd
pkg/man/table.attributes.Rd

index a9903355a58cdf3c955a768d973c4428aded8ee0..ab71bf04eb0814d1faffe8f005ad77bb01233969 100644 (file)
@@ -3,7 +3,7 @@
 \alias{xdigits}
 \alias{xdisplay}
 \title{Suggest Appropriate Formatting}
-\description{  
+\description{
   Suggest an appropriate \code{xtable} alignment, appropriate number of
   digits, or display type for a vector, or each column of a matrix or
   data frame.
@@ -16,13 +16,13 @@ xdisplay(x, pad = TRUE)
 \arguments{
   \item{x}{a vector, matrix, or data frame.}
   \item{pad}{when \code{x} is two-dimensional, \code{pad = TRUE} inserts
-    an extra \code{"l"} for the row names.}
+    an extra code for the row names: \code{"l"} alignment , \code{0}
+    digits, and \code{"s"} display.}
   \item{zap}{the number of digits passed to \code{zapsmall}.}
-  
 }
 \value{
   A character or a vector of characters, specifying the suggested
-  alignment, number of digits or display type.
+  alignment, number of digits, or display type.
 }
 \author{Arni Magnusson.}
 \seealso{
@@ -39,9 +39,11 @@ head(mtcars)
 xalign(mtcars, pad = FALSE)
 xalign(mtcars, pad = TRUE)
 xtable(mtcars, align = xalign(mtcars))
+
 xdigits(mtcars, pad = FALSE)
 xdigits(mtcars, pad = TRUE)
 xtable(mtcars, digits = xdigits(mtcars))
+
 xdisplay(mtcars, pad = FALSE)
 xdisplay(mtcars, pad = TRUE)
 xtable(mtcars, display = xdisplay(mtcars))
index d9da8a7e50c4f17467fcfae8ea3acac26cb63603..ff2be410f8c08dde4295132754ceb16880b27b9f 100644 (file)
@@ -43,5 +43,8 @@
   \code{xtable} for a description of the options.
 }
 \author{David Dahl \email{dahl@stat.byu.edu} with contributions and suggestions from many others (see source code).}
-\seealso{\code{\link{xtable}}, \code{\link{print.xtable}}, \code{\link{formatC}}}
+\seealso{
+  \code{\link{xtable}}, \code{\link{print.xtable}},
+  \code{\link{xalign}}, \code{\link{xdigits}}, \code{\link{xdisplay}}
+}
 \keyword{print}