writeMEA | R Documentation |
Exports analyzed MEA data to .txt files
writeMEA(mea, save.directory, what = c("mea", "ccf"), ...)
mea |
an object of class |
save.directory |
a character string naming a directory |
what |
a character vector defining what has to be exported. Can be one of 'mea' or 'ccf'. |
... |
further arguments passed to |
'mea' exports the (filtered) MEA data. 'ccf' instead exports the cross-correlation matrix together with all
summarizing statistics calculated by MEAccf
.
## This example is excluded from test as it takes more than 10s to run ## define a regex filter for the filenames to be read to_read = c("20[123]_*") ## read the first 4 minutes of the files path_normal <- system.file("extdata/normal", package = "rMEA") mea_normal <- readMEA(path_normal, namefilt = to_read, sampRate = 25, s1Col = 1, s2Col = 2, s1Name = "Patient", s2Name = "Therapist", idOrder = c("id","session"), idSep = "_", skip = 1, nrow = 6000) ## perform ccf analysis mea_ccf = MEAccf(mea_normal, lagSec = 5, winSec = 60, incSec = 30, r2Z = TRUE, ABS = TRUE) ## export data and analysis save_path = tempdir() writeMEA(mea_ccf, save.directory = save_path, what="ccf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.