sample.data: Sample Data Matrix For xts Example and Unit Testing

Description Usage Format Examples

Description

Simulated 180 observations on 4 variables.

Usage

1

Format

1
2
3
4
5
  The format is:
 num [1:180, 1:4] 50.0 50.2 50.4 50.4 50.2 ...
 - attr(*, "dimnames")=List of 2
  ..$ : chr [1:180] "2007-01-02" "2007-01-03" "2007-01-04" "2007-01-05" ...
  ..$ : chr [1:4] "Open" "High" "Low" "Close"

Examples

1
data(.sample.matrix)

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Warning message:
In data(.sample.matrix) : data set '.sample.matrix' not found

xts documentation built on May 2, 2019, 5:18 p.m.