These functions check if the index is regular (index_regular()
), and
summarise the index variable (index_summary()
). This can be useful
to check your index variables.
index_regular(.data, ...)# S3 method for tbl_ts
index_regular(.data, ...)
# S3 method for data.frame
index_regular(.data, index, ...)
index_summary(.data, ...)
# S3 method for tbl_ts
index_summary(.data, ...)
# S3 method for data.frame
index_summary(.data, index, ...)
logical TRUE means it is regular, FALSE means not
data.frame or tsibble
extra arguments
the proposed index variable
# a tsibble
index_regular(heights)
# some data frames
index_regular(pisa, year)
index_regular(airquality, Month)
# a tsibble
index_summary(heights)
# some data frames
index_summary(pisa, year)
index_summary(airquality, Month)
index_summary(airquality, Day)
Run the code above in your browser using DataLab