Create a dataframe to help visualise 'expected' values

expect_frame(data, expectation)

Arguments

data

data.frame

expectation

unquoted conditions or "expectations" to test

Value

data.frames where expectation are true

Examples

# NOT RUN { dat_test <- tibble::tribble( ~x, ~y, -1, "A", 0, "B", 1, "C" ) expect_frame(dat_test, ~ .x == -1) # }