Set Names of Value Columns
Set the names of columns of DTSg
objects.
## S3 method for class 'DTSg' setColNames( x, cols = self$cols(class = "numeric")[1L], values, clone = getOption("DTSgClone"), ... )
x |
A |
cols |
A character vector specifying the columns whose names shall be set. The name of the .dateTime column cannot be set. |
values |
A character vector of the same length as |
clone |
A logical specifying if the object is modified in place or if a clone (copy) is made beforehand. |
... |
Not used (S3 method only). |
Returns a DTSg
object.
# new DTSg object x <- DTSg$new(values = flow) # rename column "flow" to "River Flow" ## R6 method x$setColNames(cols = "flow", values = "River Flow") ## S3 method setColNames(x = x, cols = "flow", values = "River Flow")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.