| knit_print.spiro | R Documentation |
knit_print.spiro() provides a method for printing data.frames
from spiro within knitr.
## S3 method for class 'spiro'
knit_print(x, min = 10, max = 20, digits = 2, ...)
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 |
Cardiopulmonary exercise testing data imported by spiro will
often come in large data.frames. When knitting R Markdown documents
these will normally be printed in full size.
This function provides a method for data.frames 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.
The function prints its argument and returns it invisibly.
# Get example data
s <- spiro(spiro_example("zan_gxt"))
knitr::knit_print(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.