combineXts: join two xts objects

Description Usage Arguments Value Examples

Description

handles the edge case: if BOTH have no coredata (then merge.xts produces ONE no-data no-index xts object) then instead, preserve the indexes

Usage

1
combineXts(xTs = NULL, xTs1 = NULL)

Arguments

xTs

xts object

xTs1

xts object to merge into xTs

Value

xts object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
#  > combineXts( initXts(NULL),xts(,zoo::as.Date(0)) )
# Data:
# numeric(0)
#
# Index:
#  Date[1:1], format: "1970-01-01"
# > combineXts( xts(,zoo::as.Date(1)), xts(,zoo::as.Date(0)) )
# Data:
# numeric(0)
#
# Index:
#  Date[1:2], format: "1970-01-01" "1970-01-02"

## End(Not run)

AndreMikulec/tradeModel documentation built on May 23, 2019, 8 p.m.