generate_experiment_list {microdiluteR} | R Documentation |
Generate list of experiment names from user parameters
Description
generate_experiment_list
generates a list of provided experiment names extracted
from file names.
ask_experiment_list
works the same way as generate_experiment_list
, but retrieves the
experiment names based on a user prompt instead of user-set parameters.
Usage
generate_experiment_list(experiment_names, file_list)
ask_experiment_list(file_list)
Arguments
experiment_names |
A character vector containing names for each experiment. |
file_list |
A character vector of file IDs. Used to extract experiment IDs from. |
Details
generate_experiment_list
extracts unique identifiers from file names and matches them with the
provided experiment names. If the number of experiment names does not match the number
of unique identifiers extracted from the file names, it throws an error. If the lengths match,
it generates a list of experiment names where each name is associated with a unique
identifier extracted from the file names.
Value
generate_experiment_list
returns a list of experiment names where each level is assigned to a corresponding
row or column based on the selected direction parameter.
ask_experiment_list
returns a list containing experiment identifiers as keys and experiment names as values.
See Also
generate_group_list
, ask_group_list
,
add_treatment
, add_concentration