View source: R/create_phys_var.R
create_phys_var | R Documentation |
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")
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)
hrf <- create_hrf_afni("spmg1", 3, NULL)
phys_var <- create_phys_var(phys_ts_file, 2, 16, hrf)
summary(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.