max {opm}R Documentation

Overall or minimal maximum

Description

Get the maximum of all wells or (a) specified one(s), or their smallest maximum. The OPMS method works by calling the OPM method on all plates and then determining the overall maximum or overall minimum of the maxima.

Usage

  ## S4 method for signature 'OPM'
max(x, ..., na.rm = FALSE) 
  ## S4 method for signature 'OPMS'
max(x, ..., na.rm = FALSE) 

  ## S4 method for signature 'OPM'
minmax(x, ..., na.rm = FALSE) 
  ## S4 method for signature 'OPMS'
minmax(x, ..., na.rm = FALSE) 

Arguments

x

OPM or OPMS object.

...

Coordinate of one to several wells. If missing, the maximum or smallest of all wells is returned. See well for details. If only as single well is selected, the result of minmax is actually identical to the one of max.

na.rm

Logical scalar. See max from the base package. Has no effect here because NA values are not allowed within the measurements.

Value

Numeric scalar.

See Also

base::max base::min

Other getter-functions: aggr_settings, aggregated, anyDuplicated, anyNA, contains, csv_data, dim, disc_settings, discretized, duplicated, has_aggr, has_disc, hours, measurements, seq, subset, thin_out, well

Examples

# OPM method
(x <- max(vaas_1))
## [1] 357
(y <- max(vaas_1, 1)) # this is the negative control
## [1] 127
stopifnot(x > y) # i.e., some stronger reactions present
(x <- minmax(vaas_1))
## [1] 56
stopifnot(max(vaas_1) > x) # obviously

# OPMS method
(x <- max(vaas_4))
## [1] 357
(y <- max(vaas_4, 1)) # this is the negative control
## [1] 127
stopifnot(x > y) # i.e., some stronger reactions present
(x <- minmax(vaas_4))
## [1] 17
stopifnot(max(vaas_4) > x) # obviously

[Package opm version 1.3.63 Index]