print.xts | R Documentation |
Method for printing an extensible time-series object.
## S3 method for class 'xts'
print(x, fmt, ..., show.rows = 10, max.rows = 100)
x |
An xts object. |
fmt |
Passed to |
... |
Arguments passed to other methods. |
show.rows |
The number of first and last rows to print if the number of
rows is truncated (default 10, or |
max.rows |
The output will contain at most |
Returns x
invisibly.
Joshua M. Ulrich
data(sample_matrix)
sample.xts <- as.xts(sample_matrix)
# output is truncated and shows first and last 10 observations
print(sample.xts)
# show the first and last 5 observations
print(sample.xts, show.rows = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.