List Missing Values
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. |
... |
Not used (S3 method only). |
Returns a data.table
with five columns:
.col: the column name.
.group: the ID of the missing values group within each column.
.from: the start date of the missing values group.
.to: the end date of the missing values group.
.n: the number of missing values in the group.
# new DTSg object x <- DTSg$new(values = flow) # list missing values ## R6 method x$nas() ## S3 method nas(x = x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.