Import Check For Matching Data Files To Experimental Parameters
Source:R/utils.R
import_check_missing_info.Rd
Indicates a disparity between files present and/or parameters. Returns warning message with missing file information and allows user to exclude processing data that are missing either the data file or experimental parameters. This is important, as helper functions, import_experiment_parameters, can generate environment variables from these parameters, and analysis function arguments can easily point to those values.
Arguments
- dir_filenames
Character vector of files within the working directory
- parameters
Data frame with experimental parameters
- skip_prompt
Logical, skips warning messages and user prompts, automatically will remove files missing parameters from the
files_to_process
list. Defaults toFALSE
.
See also
set_pkg_environment to generate the required
matools_env
.set_data_directory to auto generate a vector of file names
matools_env$files_in_folder
.import_experiment_parameters to auto generate a data.frame of parameters
matools_env$parameters
.analysis_evoked_ap or analysis_evoked_psp for example workflows.
Examples
if (FALSE) {
library(matools)
set_pkg_environment()
set_data_directory()
import_experiment_parameters()
import_check_missing_info(
matools_env$files_in_folder,
matools_env$parameters
)
print(matools_env$files_to_process)
}