View source: R/data_units_and_scaling.R
scale_point_forecast | R Documentation |
If you wish to scale the forecast values, for example when temperature data are in Kelvin and you want them in degrees C, this function can be used to scale the data.
scale_point_forecast( .fcst, scale_factor, new_units = NULL, multiplicative = FALSE )
.fcst |
A |
scale_factor |
The scaling factor. |
new_units |
The name of the new units - if set to NULL, the name is not changed. |
multiplicative |
If the scaling is to be done multiplicatively, i.e. the new forecast value is to be the old value * scale_factor, set multiplicative to TRUE. The defualt (multiplicative = FALSE) is to do the scaling additively, i.e. the new forecast value is the old value + scale_factor. |
A harp_fcst
object with forecast values scaled by
scale_factor
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.