fmri_ts | R Documentation |
R6 class representing a multivariate time series object for fMRI analysis
R6 class representing a multivariate time series object for fMRI analysis
ts_data
time x signals data.table
ts_keys
RLE-encoded keying variables
event_data
trial x event data, used for aligning time series with events
vm
a list of variable mappings between internal constructs and input variable names
tr
the repetition time (TR) of the fMRI sequence in seconds
new()
Create a new fmri_ts object
fmri_ts$new(ts_data = NULL, event_data = NULL, vm = NULL, tr = NULL)
ts_data
a data.frame or data.table containing time series
event_data
a data.frame containing trial-level events that occurred in the time period represented by ts_data
vm
a list of variable names used in ts_data
and event_data
that map onto internal constructs
tr
the sampling rate (in seconds) of the fMRI data
get_ts()
method to get rehydrated time series object with key values
fmri_ts$get_ts(orig_names = FALSE)
orig_names
boolean indicating whether to return data.table with original naming scheme. Default: FALSE
add_keys()
method to add a variable in ts_data to the set of keying variables for further use
fmri_ts$add_keys(kv)
kv
A vector of one or more variables to RLE-encode and add as keys the object
replace_vm()
method to replace one or more variable mappings in the object
fmri_ts$replace_vm(...)
...
a set of arguments, each one of which replaces a field in the variable mapping with a new specification
get_kvars()
return names of key variables
fmri_ts$get_kvars()
get_vmvec()
return variable mapping information
fmri_ts$get_vmvec()
export()
not currently used
fmri_ts$export(filename)
filename
for writing out data
clone()
The objects of this class are cloneable with this method.
fmri_ts$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.