Learn R Programming

eseis (version 0.7.3)

signal_demean: Remove mean of signal vector.

Description

The function removes the mean from a signal vector.

Usage

signal_demean(data)

Value

Numeric vector or list of vectors, data set with mean subtracted.

Arguments

data

eseis object, numeric vector or list of objects, data set to be processed.

Author

Michael Dietze

Examples

Run this code

## load example data set
data(rockfall)

## remove mean from data set
rockfall_demean <- signal_demean(data = rockfall_eseis)

## compare data ranges
range(rockfall_eseis$signal)
range(rockfall_demean$signal)

## show mean of initial signal
mean(rockfall_eseis$signal)
                     

Run the code above in your browser using DataLab