creates data for each wrangling step of the physiological variable using the data wrangling functions: detrend()
, upsample()
, and deconvolve_afni()
create_phys_var( phys, detrend_factor, upsample_factor = NULL, hrf, afni_path = NULL, afni_quiet = FALSE )
phys | time series data |
---|---|
detrend_factor | factor to detrend the time series |
upsample_factor | factor to upsample the time series for the deconvolution step (default: NULL) |
hrf | hemodynamic response function (hrf) time series data |
afni_path | path to afni directory (default: NULL) |
a list of datasets for each data wrangling step of the physiological variables
df <- read_csv("examples/sub-control01_task-music_run-1_bold_space-subj_vox-32-24-38")#> Error in read_csv("examples/sub-control01_task-music_run-1_bold_space-subj_vox-32-24-38"): could not find function "read_csv"phys_ts_file <- "examples/sub-control01_task-music_run-1_bold_space-subj_vox-32-24-38.csv" phys_ts <- read.csv(phys_ts_file, header = F)#> Warning: cannot open file 'examples/sub-control01_task-music_run-1_bold_space-subj_vox-32-24-38.csv': No such file or directory#> Error in file(file, "rt"): cannot open the connection#> Error in poly(1:length(x), degree): 'degree' must be less than number of unique points#> Error in summary(test): object 'test' not found