R/bdc_create_report.R
bdc_create_report.Rd
Create a report summarizing the results of data quality tests
bdc_create_report(
data,
database_id = "database_id",
workflow_step,
save_report = FALSE
)
data.frame. Containing a unique identifier for each record and the results of data quality tests.
character string. The column name with a unique record identifier.Default = "database_id".
character string containing the following options("prefilter", "taxonomy", "space" or "time").
logical. Should the report be saved for further inspection? Default = FALSE.
A data.frame containing a report summarizing the results of data quality assessment.
if (FALSE) { # \dontrun{
database_id <- c("test_1", "test_2", "test_3", "test_4", "test_5")
.missing_names <- c(TRUE, TRUE, TRUE, FALSE, FALSE)
.missing_coordinates <- c(TRUE, FALSE, FALSE, TRUE, FALSE)
.basisOfRecords_notStandard <- c(TRUE, TRUE, FALSE, TRUE, TRUE)
.summary <- c(TRUE, FALSE, FALSE, FALSE, FALSE)
x <- data.frame(
database_id,
.missing_names,
.missing_coordinates,
.basisOfRecords_notStandard,
.summary
)
report <-
bdc_create_report(
data = x,
database_id = "database_id",
workflow_step = "prefilter",
save_report = FALSE
)
} # }