| ECoGTensor | R Documentation |
TensorFour-mode tensor (array) especially designed for
'iEEG/ECoG' data. The Dimension names are: Trial,
Frequency, Time, and Electrode.
a data frame with the dimension names as index columns and
value_name as value column
an ECoGTensor instance
raveio::Tensor -> ECoGTensor
flatten()converts tensor (array) to a table (data frame)
ECoGTensor$flatten(include_index = TRUE, value_name = "value")
include_indexlogical, whether to include dimension names
value_namecharacter, column name of the value
new()constructor
ECoGTensor$new( data, dim, dimnames, varnames, hybrid = FALSE, swap_file = temp_tensor_file(), temporary = TRUE, multi_files = FALSE, use_index = TRUE, ... )
dataarray or vector
dimdimension of data, mush match with data
dimnameslist of dimension names, equal length as dim
varnamesnames of dimnames, recommended names are:
Trial, Frequency, Time, and Electrode
hybridwhether to enable hybrid mode to reduce RAM usage
swap_fileif hybrid mode, where to store the data; default
stores in raveio_getopt('tensor_temp_path')
temporarywhether to clean up the space when exiting R session
multi_fileslogical, whether to use multiple files instead of one giant file to store data
use_indexlogical, when multi_files is true, whether use
index dimension as partition number
...further passed to Tensor constructor
Zhengjia Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.