Heartbeat Detection in Electrocardiogram Data

Import and process electrocardiogram (ECG) data. Reads binary data files from UFI devices (.ube files) and provides a Shiny app for finding and exporting heart beats.


beats

Overview

beats reads, visualizes, and process ECG data from UFI devices.

Installation

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("FlukeAndFeather/beats")

Usage

This example reads a binary UBE file and launches a Shiny app for finding heart beats.

# File path to sample data
fp <- system.file("extdata", "max_ecg_190826b.ube", package = "beats")
# Read ube file
ecg_data <- read_ube(fp)
# Launch GUI
heartbeats <- find_hr(ecg_data)
# In this heart rate profile, zoom into 12:53:20 - 12:54:25 to see actual beats

After identifying heart beats in ECG profile, you can create a GIF showing them in real time.

animate_hr(ecg_bw190918_62R, beats_bw190918_62R, which_beats = 44:50, big = TRUE)

Example of heart rate animation

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("beats")

0.1.1 by Max Czapanskiy, 7 years ago


https://github.com/FlukeAndFeather/beats


Report a bug at https://github.com/FlukeAndFeather/beats/issues


Browse source code at https://github.com/cran/beats


Authors: Max Czapanskiy [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, ggplot2, lubridate, purrr, readr, shiny, zoo

Suggests gganimate, gifski, plotly, png, testthat


See at CRAN