rm.data: Remove Poor Quality Data

Description Usage Arguments Value Examples

View source: R/rm.data.R

Description

The function nulls values of the column 'O2.correct' for specified measurement phase(s) of a specified chamber in a data frame generated by the function correct.meas. As a result, those nulled data will not be available for futher steps of the analysis, particularly for the function extract.slope.

Usage

1
2
3
4
rm.data(clean.data,
        chamber = c("CH1", "CH2", "CH3", "CH4",
                    "CH5", "CH6", "CH7", "CH8"),
        M.phase = "M0")

Arguments

clean.data

a data frame obtained by using the function correct.meas

chamber

string: the chamber where poor quality data were observed (must not contain multiple elements in a vector)

M.phase

string: the measurement phase(s) which should be eliminated from further steps of the analysis.

Value

The function returns a data frame containing data of metabolic rate measurements corrected for background respiration, where values of the column 'O2.correct' for exluded measurement phases were nulled. The data frame is used in the functions extract.slope and QC.slope.

Examples

1
2
3
4
5
6
# if the data have been already loaded to R,
# skip the first line of the code:
data(AMR.clean)
AMR.clean.modified <- rm.data(AMR.clean,
                              chamber = "CH3",
                              M.phase = c("M1","M2"))

FishResp documentation built on Oct. 22, 2018, 9:03 a.m.