ltxttab | R Documentation |
Loads and concatenates text-table format Luna (-t
mode) output
ltxttab(root, f = "", ids = dir(root), silent = F)
root |
a required parameter, the folder containing the output |
f |
(optional) the name of the file to load from each subfolder of |
ids |
(optional) to specify that only a subset of individuals are loaded (subfolder names are expected to correspond to IDs) |
silent |
(optional) if set to true makes this function runs silently (not output to console) |
a data.frame
containing row-concatenated data from the subfolders of root
## Not run:
## this luna command will make a out1 subfolder
## % luna s.lst -t out1 -s 'MASK ifnot=NREM2 & RE & PSD spectrum sig=EEG'
## % ls out1/
## nsrr01 nsrr02 nsrr03
## each subfolder will contain iodentical file names.
## % ls out1/nsrr01
## MASK-EPOCH_MASK.txt PSD-B,CH.txt PSD-CH.txt PSD-F,CH.txt RE.txt
## get an enumeration of all files
> ltxttab("out1")
MASK-EPOCH_MASK.txt PSD-B,CH.txt PSD-CH.txt PSD-F,CH.txt
3 3 3 3
RE.txt
3
## to load all PSD-B,CH.txt files:
> d <- ltxttab("out1", "PSD-B,CH.txt")
> table(d$ID)
nsrr01 nsrr02 nsrr03
10 10 10
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.