
Last chance! 50% off unlimited learning
Sale ends in
This function contrasts the expected record number in each study segment in the metadata with the actual record number in each segment data frame.
Indicator
int_unexp_records_segment(
study_segment,
data_record_count,
study_data,
meta_data
)
a list with
SegmentData
: data frame with the results of the quality check for unexpected data elements
SegmentTable
: data frame with selected unexpected data elements check results, used for the data quality report.
character a character vector indicating the name of each study data frame, mandatory.
integer an integer vector with the number of expected data records, mandatory.
data.frame the data frame that contains the measurements, mandatory.
data.frame the data frame that contains metadata attributes of the study data, mandatory.
The current implementation does not take into account jump or missing codes, the function is rather based on checking whether NAs are present in the study data
if (FALSE) {
study_data <- readRDS(system.file("extdata", "ship.RDS", package = "dataquieR"))
meta_data <- readRDS(system.file("extdata", "ship_meta.RDS", package = "dataquieR"))
int_unexp_records_segment(
study_segment = c("PART_STUDY", "PART_INTERVIEW"),
data_record_count = c(3000, 1100),
study_data = study_data,
meta_data = meta_data
)
}
Run the code above in your browser using DataLab