cols.DTSg | R Documentation |
Returns all column names of a DTSg
object, those of certain class
es,
mode
s, typeof
s and/or those matching a certain pattern only.
## S3 method for class 'DTSg'
cols(x, class = NULL, pattern = NULL, mode = NULL, typeof = NULL, ...)
x |
A |
class |
An optional character vector matched to the most specific class
(first element) of each column's |
pattern |
An optional character string passed on to the |
mode |
An optional character vector matched to each column's |
typeof |
An optional character vector matched to each column's
|
... |
Further arguments passed on to |
Returns a character vector.
# new DTSg object
x <- DTSg$new(values = flow)
# get names of numeric columns
## R6 method
x$cols(class = "numeric")
## 'names()' is a "hidden" R6 alias for 'cols()'
x$names(class = "numeric")
## S3 method
cols(x = x, class = "numeric")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.