# new DTSg object
x <- DTSg$new(values = flow)
# get the first ten values of the "flow" column
## R6 methods
x$getCol(col = "flow")[1:10]
x$`[`("flow")[1:10]
## S3 methods
getCol(x = x, col = "flow")[1:10]
x["flow"][1:10]
Run the code above in your browser using DataLab