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.
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()