Description Usage Arguments Value Examples
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
1 |
xTs |
xts object |
matrix
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.