import_wfdb_annotations: Helper function to read single-channel WFDB annotations into...

View source: R/correct_peaks.R

import_wfdb_annotationsR Documentation

Helper function to read single-channel WFDB annotations into a data.table object

Description

Helper function to read single-channel WFDB annotations into a data.table object

Usage

import_wfdb_annotations(
  wfdb_file,
  annotator,
  elapsed = TRUE,
  channel = 0L,
  type = "N",
  wfdb_path = "/usr/local/wfdb/bin"
)

Arguments

wfdb_file

Prefix to wfdb file containing the annotations to be extracted

annotator

The algorithm used for creating the annotations (determines the suffix, like 100.gqrs)

elapsed

A boolean indicating whether to extract elapsed times since beginning of record or absolute times. A value of TRUE passes -e to rdann

channel

optional channel to read annotations from if file contains multi-channel data. Default is 0, which is the first channel.

type

The type of annotation to be imported from WFDB. Defaults to "N" for normal beats in ECG

wfdb_path

location of the WFDB bin directory on this computer.

Author(s)

Michael Hallquist


PennStateDEPENdLab/experiment_pipeline documentation built on Sept. 4, 2024, 2:35 a.m.