demeaner: Data Stream Demeaner

Description Usage Arguments Value Examples

View source: R/demeaner.R

Description

The function aims to take a data stream in a vector form and returns the demeaned data for further analysis. In short, the function calculates the mean of the data and element-wise substracts it from the entire vector

Usage

1
demeaner(datastream)

Arguments

datastream

is a vector containing a one dimensional data stream

Value

The function returns a vector containing the demeaned data stream

Examples

1
2
3
4
5
6
# Load the installed library/package
library(readTDMS)
# Create or Import the data to be demeaned
data <- c(runif(150))
# Call the Function
demeaned_data <- demeaner(data)

abhishekhanchate/readTDMS documentation built on Dec. 18, 2021, 9:30 p.m.