Create a failure log

create_failure_log(failures, eval_code, description)

Arguments

failures

a table (possible with nrow == 0 if there are no errors) with the following columns: site, episode_id, event_id, code_name, value. If not already done so, the value column will be converted to a string representation.

eval_code

character vector length 1 with the data quality evaluation code

description

character vector length 1 with a standardised text description of the code in use

Value

Details

Creates a failure log ready to be imported into the events_quality table. This ensures there is a standardised format in use and returns an empty table should there not be any failures.