powered by
Queries all column names of a DTSg object or those of a certain class only.
DTSg
class
# S3 method for DTSg cols(x, class = "all", ...)
A DTSg object (S3 method only).
A character string matched to the most specific class (first element) of each column's class vector or "all" for all column names.
"all"
Not used (S3 method only).
Returns a character vector.
DTSg, class
# NOT RUN { # new DTSg object x <- DTSg$new(values = flow) # get names of numeric columns ## R6 method x$cols(class = "numeric") ## S3 method cols(x = x, class = "numeric") # }
Run the code above in your browser using DataLab