Learn R Programming

FREddyPro (version 1.0)

sdClean: Clean using standard deviation

Description

Functions which splits the fluxes to positive and negative, estimates mean and standard deviation and removes values which are greater than a predefined times the standard deviation

Usage

sdClean(var, p)

Arguments

var
The variable to clean
p
A number giving the times of the standard deviation

Examples

Run this code
## Load the data
data(fluxes)

## Clean CO2 fluxes using 3 times the SD for negative and positive
## values separately
fluxes$co2_flux<-sdClean(fluxes$co2_flux,3)

Run the code above in your browser using DataLab