Add an element to the report object
Examples
# scan through the data
scan_res <- scan_data(
data = readRDS(system.file("extdata", "test_df.RDS", package = "cleanepi"))
)
# Perform data cleaning
cleaned_data <- clean_data(
data = readRDS(
system.file("extdata", "test_df.RDS", package = "cleanepi")
),
to_numeric = list(target_columns = "sex", lang = "en"),
dictionary = NULL
)
#>
#> cleaning column names
#> removing the constant columns, empty rows and columns
#> removing duplicated rows
#> No duplicates were found.
#> converting sex, en into numeric
# add the data scanning result to the report
cleaned_data <- add_to_report(
x = cleaned_data,
key = "scanning_result",
value = scan_res
)