knit_print.spiro {spiro} | R Documentation |
Printing spiro data frames in a knitr context
Description
knit_print.spiro()
provides a method for printing data.frames
from spiro
within knitr
.
Usage
## S3 method for class 'spiro'
knit_print(x, min = 10, max = 20, digits = 2, ...)
Arguments
x |
A |
min |
An integer, which sets the number of rows to which |
max |
An integer, setting the maximal number of rows to be not cut to
|
digits |
An integer giving the number of decimals to be rounded to. |
... |
Passing of additional arguments to |
Details
Cardiopulmonary exercise testing data imported by spiro
will
often come in large data.frame
s. When knitting R Markdown documents
these will normally be printed in full size.
This function provides a method for data.frame
s of the class
spiro
to limit the number of rows displayed to min
if it
exceeds max
. The number of hidden data rows will be printed below the
data.frame
.
Value
The function prints its argument and returns it invisibly.
Examples
# Get example data
s <- spiro(spiro_example("zan_gxt"))
knitr::knit_print(s)