cbindRobust: Function to combine time series that fixes the NA problem

View source: R/cbindRobust.R

cbindRobustR Documentation

Function to combine time series that fixes the NA problem

Description

When combining two xts time series in which one series is an empty NA series and the other is a character series, then the normal cbind function will return a time series with the correct number of rows and columns but with every cell occupied with NA. This function overcomes this problem by allowing us to combine an empty series and a character series.

Usage

cbindRobust(xts1, xts2)

Arguments

xts1

First time series to combine

xts2

Second time series to combine


CharlesCara/DatastreamDSWS2R documentation built on Jan. 31, 2024, 1 a.m.