nas.DTSg | R Documentation |
Lists the missing values of selected columns of a DTSg
object with
recognised periodicity.
## S3 method for class 'DTSg'
nas(x, cols = self$cols(), ...)
x |
A |
cols |
A character vector specifying the columns whose missing values
shall be listed. Another possibility is a character string containing
either comma separated column names, for example, |
... |
Not used (S3 method only). |
Returns a data.table::data.table
with five columns:
.col: the column name
.group: the ID of the missing values group within each column
.from: the first timestamp of the missing values group
.to: the last timestamp of the missing values group
.n: the number of missing values per group
cols
# new DTSg object
x <- DTSg$new(values = flow)
# list missing values
## R6 method
x$nas()
## S3 method
nas(x = x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.