Skip to contents

This function checks if the user CSV file meets specific upload requirements, including necessary columns and formatting checks. Errors will be thrown if requirements are not met.

Usage

validate_and_format_specimen_file(
  user_file,
  sample_type,
  user_action,
  file_column_attr,
  bind_data = NULL
)

Arguments

user_file

The user's CSV file as a data frame.

sample_type

The sample type associated with the user's CSV file.

file_column_attr

The file column attributes.

Value

A cleaned and checked user_file ready for further processing.