minMax {dataReporter} | R Documentation |
summaryFunction for minimum and maximum
Description
A summaryFunction
, intended to be called from
summarize
, which returns the minimum and maximum values of a variable.
NA, NaN and Inf values are removed prior to the computations.
Usage
minMax(v, maxDecimals = 2)
Arguments
v |
A variable (vector) of type numeric or integer. |
maxDecimals |
A positive integer or |
Value
An object of class summaryResult
with the following entries: $feature
("Min. and max."), $result
(the minimum and maximum of v
), and $value
(minimum and maximum in their orignial format).
See Also
summaryFunction
, summarize
, summaryResult
,
allSummaryFunctions
Examples
minMax(c(1:100))
[Package dataReporter version 1.0.2 Index]