Get TR (Repetition Time) from Sampling Frame
Source:R/all_generic.R, R/dataset_methods.R, R/sampling_frame_adapters.R
get_TR.RdExtracts the repetition time (TR) in seconds from objects containing temporal information about fMRI acquisitions.
Usage
get_TR(x, ...)
# S3 method for class 'matrix_dataset'
get_TR(x, ...)
# S3 method for class 'fmri_dataset'
get_TR(x, ...)
# S3 method for class 'fmri_mem_dataset'
get_TR(x, ...)
# S3 method for class 'fmri_file_dataset'
get_TR(x, ...)
# S3 method for class 'fmri_study_dataset'
get_TR(x, ...)
# S3 method for class 'sampling_frame'
get_TR(x, ...)Details
The TR (repetition time) is the time between successive acquisitions of the same slice in an fMRI scan, typically measured in seconds. This parameter is crucial for temporal analyses and hemodynamic modeling.
See also
sampling_frame for creating temporal structures,
get_total_duration for total scan duration
Examples
# \donttest{
# Create a sampling frame with TR = 2 seconds
sf <- fmrihrf::sampling_frame(blocklens = c(100, 120), TR = 2)
get_TR(sf) # Returns: 2
#> [1] 2
# }