Learn R Programming

FishResp (version 1.1.1)

rm.data: Remove Poor Quality Data

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

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

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.

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.

Examples

Run this code
# 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"))

Run the code above in your browser using DataLab