View source: R/wfdb-structures.R
annotation_table | R Documentation |
annotation_table()
modifies the data.table
class to work
with annotation data. The columns are of all equal length, and each row
describes a single annotation (although there may be duplicate time points).
annotation_table(
annotator = character(),
time = character(),
sample = integer(),
frequency = integer(),
type = character(),
subtype = character(),
channel = integer(),
number = integer(),
...
)
is_annotation_table(x)
annotator |
String that is the name of a WFDB-compatible annotation
type, serving as the extension for the file that is written containing that
annotation. Please see |
time |
A |
sample |
An |
frequency |
An |
type |
A |
subtype |
A |
channel |
An |
number |
An additional |
... |
Additional arguments to be passed to the function |
x |
A |
The annotation_table()
function creates a compatible table that
can be used with write_annotation()
and read_annotation()
functions.
A data.table
that has invariant columns that are compatible with
the WFDB library. The key columns include the sample index, the type of
annotation (and its subtype and number qualifier), and the channel.
The following annotation file types are described below.
ecgpuwave
ecgpuwave
analyzes an ECG signal from the specified record, detecting the
QRS complexes and locating the beginning, peak, and end of the P, QRS, and
ST-T waveforms. The output of ecgpuwave is written as a standard WFDB-format
annotation file (the extension is "*.ecgpuwave", as would be expected). This
file can be converted into text format using rdann
. Further details are
given at the ECGPUWAVE
page.
The type column can be p, t, or N for the peak of the P wave, T wave, and QRS (R peak) directly. The output notation also includes waveform onset XXX and waveform offset XXX. The number column gives further information about each of these type labels.
The number column gives modifier information. If the type classifier is a T wave annotation, the number column can be 0 (normal), 1 (inverted), 2 (positive), 3 (negative), 4 (biphasic negative-positive), 5 (biphasic positive-negative). If the type is an waveform onset or offset, then number can be 0 (P wave), 1 (QRS complex), 2 (T wave).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.