This class serves as a combinatorial class to describe
cardiovascular electrical signal data in R. It is based off of the formats
available in WFDB, but has been formatted for ease of use within the R
ecosystem. An egm
object contains three components in a list:
signal data in multiple channels
header information
annotation labels at specified time points
These components help to navigate, and visualize data. The egm
class is
the backbone for working with WFDB objects in R, and provides an interface
for integrating or converting other raw signal data to a WFDB format.
Usage
egm(
signal = signal_table(),
header = header_table(),
annotation = annotation_table(),
...
)
is_egm(x)
Arguments
- signal
A
signal_table
object generated by thesignal_table()
function- header
A
header_table
object generated by theheader_table()
function- annotation
A
annotation_table
object generated by theannotation_table()
function- ...
Additional arguments to be passed to the function
- x
An
egm
object, typically generated by theegm()
function, to be used with support functions (e.g.is_egm()
Value
An object of class egm
that is always a list of the above three
components. Oftentimes, the annotation_table
object may be missing, and
it is replaced with an empty table as a place holder.
Details
The individual components of the class are further defined in their
respective children functions signal_table()
, header_table()
,
annotation_table()
. They are very simple classes that build upon the
data.table
class that allow for class safety checks when working with
different data types (particularly WFDB).
IMPORTANT: The egm
class can be built from ground-up by the user,
however it is primarily generated for the user using the other read/write
functions, such as read_lspro()
or read_wfdb()
.