Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

merge.DTSg

Merge Two Objects


Description

Joins two DTSg objects based on their .dateTime column. Their time zones and aggregated fields must be the same.

Usage

## S3 method for class 'DTSg'
merge(x, y, ..., clone = getOption("DTSgClone"))

Arguments

x

A DTSg object (S3 method only).

y

A DTSg object or an object coercible to one. See new for further information.

...

Further arguments passed on to merge. As the by, by.x and by.y arguments can endanger the integrity of the object, they are rejected.

clone

A logical specifying if the object is modified in place or if a clone (copy) is made beforehand.

Value

Returns a DTSg object.

See Also

Examples

# new DTSg object
x <- DTSg$new(values = flow)

# merge with data.table
## R6 method
x$merge(y = flow, suffixes = c("_1", "_2"))

## S3 method
merge(x = x, y = flow, suffixes = c("_1", "_2"))

DTSg

A Class for Working with Time Series Based on 'data.table' and 'R6' with Largely Optional Reference Semantics

v0.7.0
MIT + file LICENSE
Authors
Gerold Hepp [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.