Skip to content

hugheylab/spectr

Repository files navigation

spectr

check-deploy codecov Netlify Status CRAN Status drat version

spectr provides a consistent interface to use various methods to calculate the periodogram of a time-course. The methods include Lomb-Scargle, fast Fourier transform, and three versions of the chi-square periodogram. To see how we've used spectr, check out the paper.

Installation

Option 1: CRAN

install.packages('spectr')

Option 2: Hughey Lab Drat Repository

  1. Install BiocManager.

    if (!requireNamespace('BiocManager', quietly = TRUE))
      install.packages('BiocManager')
  2. If you use RStudio, go to Tools → Global Options... → Packages → Add... (under Secondary repositories), then enter:

    You only have to do this once. Then you can install or update the package by entering:

    BiocManager::install('spectr')

    Alternatively, you can install or update the package by entering:

    BiocManager::install('spectr', site_repository = 'https://hugheylab.github.io/drat/')

Usage

See the examples and detailed guidance in the reference documentation.