int_unexp_elements: Check for unexpected data element count

View source: R/int_unexp_elements.R

int_unexp_elementsR Documentation

Check for unexpected data element count

Description

This function contrasts the expected element number in each study in the metadata with the actual element number in each study data frame.

Indicator

Usage

int_unexp_elements(identifier_name_list, data_element_count)

Arguments

identifier_name_list

character a character vector indicating the name of each study data frame, mandatory.

data_element_count

integer an integer vector with the number of expected data elements, mandatory.

Value

a list with

  • DataframeData: data frame with the results of the quality check for unexpected data elements

  • DataframeTable: data frame with selected unexpected data elements check results, used for the data quality report.

Examples

## Not run: 
study_tables <- list(
"sd1" = readRDS(system.file("extdata", "ship_subset1.RDS",
                     package = "dataquieR")),
"sd2" = readRDS(system.file("extdata", "ship_subset2.RDS",
                     package = "dataquieR"))
)

prep_add_data_frames(data_frame_list = study_tables)

int_unexp_elements(
 identifier_name_list = c("sd1", "sd2"),
 data_element_count = c(30, 29)
)

## End(Not run)

dataquieR documentation built on May 29, 2024, 7:18 a.m.