minmax | R Documentation |
Get the observation(s) or pointwise values with the min / max values. When
using type='Obs'
, the selected observation is the one with the
minimum or maximum mean. When using type='fparam'
, the values are
given pointwise.
## S3 method for class 'dfts'
max(x, type = c("Obs", "fparam"), na.rm = TRUE, ...)
## S3 method for class 'dfts'
min(x, type = c("Obs", "fparam"), na.rm = TRUE, ...)
x |
A dfts object or data which can be automatically converted to that
format. See |
type |
String indicating if finding for observation ('Obs'), or for pointwise values ('fparam'). |
na.rm |
Boolean if NA values should be removed. Defaults to TRUE. |
... |
Additional parameters to pass to base R's |
A dfts object.
results <- max(electricity)
results <- min(electricity)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.