Assert that two tibbles of date and time mapping align
Source:R/checkers.R
assert_equivalent_indexing.Rd
Assert that two tibbles of date and time mapping align
Usage
assert_equivalent_indexing(
first_data,
second_data,
arg1 = "x1",
arg2 = "x2",
call = rlang::caller_env(),
add_err_msg = ""
)
Arguments
- first_data
a tibble containing the columns
date
(with IS08601 dates) andt
(integers of time in days)- second_data
a tibble containing the columns
date
(with IS08601 dates) andt
(integers of time in days)- arg1
string to print the name of the element your checking, default is
x1
- arg2
string to print the name of the element your checking, default is
x2
- call
Calling environment to be passed to
cli::cli_abort()
for traceback.- add_err_msg
add_err_msg string containing an additional error message, default is the empty string (
""
)