merge.DTSg {DTSg} | R Documentation |
Merge two objects
Description
Joins two DTSg
objects based on their .dateTime column. Their time
zones and aggregated
fields must match.
Usage
## S3 method for class 'DTSg'
merge(x, y, ..., clone = getOption("DTSgClone"))
Arguments
x |
A |
y |
A |
... |
Further arguments passed on to |
clone |
A logical specifying if the object shall be modified in place or if a deep clone (copy) shall be 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")
)$print()
## S3 method
print(merge(
x = x,
y = flow,
suffixes = c("_1", "_2")
))
[Package DTSg version 1.1.3 Index]