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.
minMax(v, maxDecimals = 2)
| v | A variable (vector) of type numeric or integer. |
|---|---|
| maxDecimals | A positive integer or |
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).
minMax(c(1:100))#> Min. and max.: 1; 100