merge.DTSg | R Documentation |
Joins two DTSg
objects based on their .dateTime column. Their time
zones and aggregated
fields must match.
## S3 method for class 'DTSg'
merge(x, y, ..., clone = getOption("DTSgClone"))
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. |
Returns a DTSg
object.
getOption
# 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")
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.