rowbind.DTSg | R Documentation |
Combines the rows of DTSg
and other suitable objects.
## S3 method for class 'DTSg'
rowbind(x, ..., clone = getOption("DTSgClone"))
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. |
Returns a DTSg
object.
cols
, getOption
# 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, ]
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.