Skip to contents

This function pre-processes the input data frame based on given column mappings. It renames columns and also applies column-specific transformations where needed.

Usage

prepare_control_data_for_validation(
  control_type,
  user_data,
  action,
  file_column_attr
)

Arguments

user_data

A data frame with columns to be renamed.

file_column_attr

A ColumnData object containing the column mappings.

Value

A pre-processed data frame.

Examples

if (FALSE) { # \dontrun{
user_data <- data.frame(
  StudyCode = c(1,2),
  StudySubject = c('X', 'Y'),
  Row = c(1, 2),
  Column = c('A', 'A')
)

# Assuming file_column_attr is an instantiated ColumnData object

new_df <- prepare_control_data_for_validation(user_data, file_column_attr)
} # }