rowbind.DTSg {DTSg} | R Documentation |
Combine rows
Description
Combines the rows of DTSg
and other suitable objects.
Usage
## S3 method for class 'DTSg'
rowbind(x, ..., clone = getOption("DTSgClone"))
Arguments
x |
A |
... |
Any number of |
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[1:500, ])
# combine rows
## R6 method
x$rowbind(
list(flow[1001:1500, ], DTSg$new(values = flow[501:1000, ])),
flow[1501:.N, ]
)$print()
## 'rbind()' is a "hidden" R6 alias for 'rowbind()'
x$rbind(
list(flow[1001:1500, ], DTSg$new(values = flow[501:1000, ])),
flow[1501:.N, ]
)$print()
## S3 method
print(rowbind(
x = x,
list(flow[1001:1500, ], DTSg$new(values = flow[501:1000, ])),
flow[1501:.N, ]
))
[Package DTSg version 1.1.3 Index]