in.custom.region: Check whether data points are within a custom region

View source: R/electrophoresis.R

in.custom.regionR Documentation

Check whether data points are within a custom region

Description

This function takes the $data element of an electrophoresis object and the boundaries of a region, for a desired variable, and checks whether each data point is within that region.

Usage

in.custom.region(
  data,
  lower.bound = -Inf,
  upper.bound = Inf,
  bound.variable = "length"
)

Arguments

data

A data frame of electrophoresis data, from the $data member of an electrophoresis object (not the whole object itself).

lower.bound

Lower boundary of the region.

upper.bound

Upper boundary of the region.

bound.variable

Which variable the boundaries refer to.

Value

A vector of logicals with length nrow(data).

See Also

in.region, in.peak


jwfoley/bioanalyzeR documentation built on Aug. 1, 2023, 4:46 a.m.