df_merge | R Documentation |
Full join on an arbitrary number of 'data.frame' objects passed as arguments, preserving all unique entries. Can be used to combine historical time series data where each observation is indexed by a unique timestamp and all periods are complete.
df_merge(...)
... |
data.frame objects to combine. |
Can be used to join price dataframes retrieved by oanda
.
The function is designed to join complete historical data. If the data to
be merged contains data with incomplete periods, all entries are
preserved rather than updated. If incomplete periods are detected within
the data, a warning is issued, and the resulting dataframe should be
manually checked in case it contains unwanted duplicates. Use
df_append
for updating dataframes with new values.
A data.frame containing all unique entries in the objects passed as argument.
data1 <- sample_ohlc_data[1:6, ]
data1
data2 <- sample_ohlc_data[4:10, ]
data2
df_merge(data1, data2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.