Skip to contents

This class serves as a specialized extension of the egm class specifically for standard 12-lead electrocardiogram data. It inherits all functionality from egm while providing additional validation and methods specific to 12-lead ECG analysis.

Usage

ecg(
  signal = signal_table(),
  header = header_table(),
  annotation = annotation_table(),
  ...
)

is_ecg(x)

Arguments

signal

A signal_table object generated by the signal_table() function containing standard ECG leads

header

A header_table object generated by the header_table() function

annotation

A annotation_table object generated by the annotation_table() function

...

Additional arguments to be passed to the function

x

An ecg object to be used with support functions

Value

An object of class ecg (which inherits from egm) containing signal, header, and annotation components.

Details

The ecg object contains the same three components as egm:

  • signal data in multiple channels (specifically 12 standard ECG leads)

  • header information

  • annotation labels at specified time points

The primary difference is that this class enforces validation to ensure the data represents a standard 12-lead ECG with appropriate lead names.