Description Usage Arguments Value Examples
This function reads the data stored in an EBM file. This data consists of, e.g., physiologic signals.
1 2 |
datapath |
Either the full path to a directory containing EBM-files or the full path to a particular EBM file. If a directory is given, it is assumed that all these files are from the same recording session |
channels |
A string or a list of strings with channel names
(typically the same name as the EBM file names). If the
|
start |
The offset in seconds from the beginning of the file to start reading data. |
data.length |
The amount of data in seconds to be read. |
header.only |
Boolean denoting whether to only read the headers in the EBM file. Default is FALSE. |
The data in the EBM file(s) as a list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# Read all EBM files in a directory
ebm <- read.ebm("/tmp/datapath")
# Read one particular EBM file
ebm <- read.ebm("/tmp/datapath/ECG.ebm")
# Read some channels
ebm <- read.ebm("/tmp/datapath", channels = c("ECG", "Fz", "Cz"))
# Read 20 seconds of data, starting 10 seconds after the beginning of the file:
ebm <- read.ebm("/tmp/datapath/ECG.ebm", start = 10, data.length = 20)
# Only read the header
ebm <- read.ebm("/tmp/datapath/ECG.ebm", header.only = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.