Learn R Programming

gsrc (version 1.1)

check_raw: Check raw data

Description

Before preprocessing it is advised to check the data for failed samples. This function allows to visualize the signals and return sample indices of failed samples.

Usage

check_raw(raw, plot = TRUE, thresh = 0, ...)

Arguments

raw
Matrix with raw data. Two consecutive columns per sample. The order (e.g. green,red) must be consistent for all samples.
plot
Logical. If TRUE data will be plotted.
thresh
Threshold for filtering.
...
arguments are forwarded to hist().

Value

Vector containing Samples below threshold.

Examples

Run this code
if(require(brassicaData)){
data("raw_napus", package = "brassicaData", envir = environment())
to_filter <- check_raw(raw_napus, thresh = 28000, breaks = 20)
}

Run the code above in your browser using DataLab