Ingest signals according to 'RAVE' repository epoch
Source:R/rave-prepare-addon-ingest_regressor.R
ingest_regressor.RdIngest signals according to 'RAVE' repository epoch
Usage
ingest_regressor(
repository,
source,
source_type = c("channel", "file", "r_object"),
filter = NULL,
...
)Arguments
- repository
'RAVE' repository, for example, generated from
prepare_subject_power. The repository must contain epoch information.- source
data source, see
source_type- source_type
type of the data source, choices are
'channel'sourceshould be interpreted as subject channels (integer or series of integers)'file'sourceshould be interpreted as file path; the file format must be either 'Matlab' or 'HDF5', with data names to be the blocks in the "epoch" file. The sample rate of underlying signals must coincide with the sample rate presented in the repository'r_object'sourceshould be a list of R objects, where the names are blocks in the "epoch" file and the data are signal traces; The sample rate of underlying signals must coincide with the sample rate presented in the repository
- filter
NULLor function; only used ifsource_typeis'channel'. For function,filtermust have two exact arguments, with the first argument taking the signal data matrix (time point by channel) and second argument taking sample rates of length 2. The first sample rate is the original sampling frequency of the data; the second sample rate is sampling frequency derived from the repository.- ...
passed to internal functions.