# NOT RUN {
# new DTSg object
x <- DTSg$new(values = flow)
# cap river flows to 100
## R6 method
x$setCols(i = flow > 100, cols = "flow", values = 100)
## S3 method
setCols(x = x, i = flow > 100, cols = "flow", values = 100)
# }
Run the code above in your browser using DataLab