emptyxts: Create an empty xts matrix filled with NAs

Description Usage Arguments Value

Description

Create an empty xts matrix filled with NAs

Usage

1
2
emptyxts(cnames = NULL, nc = 1, rowfill = NA,
  order.by = index(xts_data["2014", ]))

Arguments

cnames

A character vector of column names, or NA if not specified.

nc

The number of columns unless cnames is provided, which overrides this parameter.

rowfill

A vector of numbers which is used to fill each row of the xts matrix. If the vector is too short, it is recycled, or truncated if too long. If NA, then the xts will be empty (all NAs).

order.by

The index of the xts matrix

Value

An empty xts matrix filled with NAs


jeanmarcgp/xtsanalytics documentation built on May 19, 2019, 12:38 a.m.