Skip to contents

Cleans a list of data frames with different structures. This function reads data from either a folder containing text files or from a list of data frames. It then cleans each data frame using the function tidy_plates_via_prompts().

Usage

tidy_plates(
  input_data,
  how_many = c("single", "multiple"),
  user_prompt = FALSE,
  multiple_structures = FALSE,
  direction = c("horizontal", "vertical"),
  ...
)

Arguments

input_data

Either a folder path containing text files or a list of data frames.

how_many

A character vector specifying if metadata should be added to only a single plate or multiple plates.

user_prompt

Logical indicating whether adding metadata should be applied via user prompts. Only applied if user_prompt is set to TRUE. Defaults to FALSE.

multiple_structures

Logical indicating whether adding metadata should be applied for each plate separately, because plates have different metadata structures. Will be applied via user prompts for each plate separately. Defaults to FALSE.

direction

A character vector specifying the orientation of the plate layout. It can be either "horizontal" or "vertical".

...

Additional arguments to be passed to read_plates, tidy_single_plate, tidy_plates_via_params, or tidy_plates_via_prompts.

Value

A list of cleaned data frames.