Skip to content

an R package for peak detection in univariate time series data

License

Notifications You must be signed in to change notification settings

ShotaOchi/scorepeak

Repository files navigation

scorepeak

Build Status CRAN Version License: GPL v3 codecov

Introduction

scorepeak is an R package for peak detection in univariate time series.

scorepeak provides peak functions, which enable us to detect peaks.

Installation

you can install scorepeak from GitHub.

Run the following R code to install scorepeak.

devtools::install_github("ShotaOchi/scorepeak")

Simple Demo

A simple demo of peak detection is shown below.

library(scorepeak)
data("ecgca102")
lp <- detect_localmaxima(ecgca102, 13)
score <- score_type1(ecgca102, 51)
detected <- score > 0.03 & lp
plot(ecgca102, type = "l")
points(which(detected), ecgca102[detected], pch = 19, col = "red")

Contribution

You're welcome to create issues for any bug report or suggestion on the issues page.

You can also fork this repository and send me a pull request for bug fixes or additional features.

About

an R package for peak detection in univariate time series data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published