max {opm} | R Documentation |
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.
## 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)
x |
|
... |
Coordinate of one to several wells. If
missing, the maximum or smallest of all wells is
returned. See |
na.rm |
Logical scalar. See |
Numeric scalar.
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
# 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