Skip to contents

Get the relevant data from the SLFs use, the year, recid and variable names from the 'new' data to make it as efficient as possible.

Usage

get_existing_data_for_tests(new_data, file_version = "episode")

Arguments

new_data

a tibble of the new data which the SLF data will be compared to.

file_version

whether to test against the "episode" file (the default) or the "individual" file.

Value

a tibble from the SLF with the relevant recids and variables.

See also

produce_source_extract_tests

Other test functions: format_test_excel(), produce_test_comparison(), write_tests_xlsx()