Skip to contents

Deprecated: delegates to PhysioExperiment::setAssaySamplingRate(). New code should use PhysioExperiment directly.

Usage

setAssaySamplingRate(x, assay_name, rate)

Arguments

x

A PhysioExperiment object.

assay_name

Name of the assay.

rate

Sampling rate for the assay in Hz.

Value

The updated PhysioExperiment.

Examples

pe <- PhysioExperiment(
  assays = list(raw = matrix(rnorm(100 * 2), nrow = 100, ncol = 2)),
  samplingRate = 100
)
pe <- setAssaySamplingRate(pe, "raw", 100)
assaySamplingRates(pe)
#> raw 
#> 100