File: xtable2kable.Rd

package info (click to toggle)
r-cran-kableextra 1.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,400 kB
  • sloc: javascript: 579; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,079 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xtable2kable.R
\name{xtable2kable}
\alias{xtable2kable}
\title{Convert xtable to a kable object}
\usage{
xtable2kable(x, ...)
}
\arguments{
\item{x}{an xtable object}

\item{...}{options for print.xtable}
}
\description{
This function allow users to turn an xtable object into a kable
so they can use most of kableExtra's functions with their xtable code without
making too many changes. Note that although I tested many cases and it seems
to work, this function may not be functional in some other cases. I'm not
a regular xtable user and can only provide very limited support for this
function.

You should use this table in the same way as \code{print.xtable}. All the options
you provided to this function will be sent to \code{print.xtable}. Instead of
printing out the result, this function will return the LaTeX or HTML as
text and a kable object.
}
\examples{
\dontrun{
library(xtable)
xtable(mtcars) \%>\%
  xtable2kable(booktabs = TRUE) \%>\%
  kable_styling(latex_options = "striped")
}

}