Coredata: garentees return value value is a 'matrix of at least one...

Description Usage Arguments Value Examples

View source: R/auxilary.R

Description

handles the edge case of coredata(<vector of element of size 1 or size 0>) meant specifically to input empty coredata data into xts(, index) xts(,index) only accepts a non zero-dimension matrix or a NULL

Usage

1
Coredata(xTs = NULL)

Arguments

xTs

xts object

Value

matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# > require(xts)
# > Coredata(NULL)
# NULL
#
# > Coredata(numeric(0))
# NULL
#
# > Coredata(11:13)
#      [,1]
# [1,]   11
# [2,]   12
# [3,]   13

## End(Not run)

AndreMikulec/UScourtsBankrutcyFilings documentation built on Oct. 8, 2018, 12:14 a.m.