Check horizontal format
Usage
check_horizontal(x, ...)
# S3 method for class 'data.frame'
check_horizontal(x, ...)
# S3 method for class 'matrix'
check_horizontal(x, date_format = "%Y-%m-%d", ...)
# Default S3 method
check_horizontal(x, ...)Examples
if (FALSE) { # rjd3jars::check_java_version(silent = TRUE)
long_format <- rjd3revisions:::simulate_long(
start_period = as.Date("2020-01-01"),
n_period = 24,
n_revision = 6,
periodicity = 12L
)
horizontal_format <- rjd3revisions:::from_long_to_horizontal(long_format)
check_horizontal(horizontal_format)
}