View source: R/data_units_and_scaling.R
set_units | R Documentation |
Note that the contents of the data are not changed in any way. Rather, if a column called 'units' exists, its contents are modified to be that passed in the units_name argument - if the 'units' column does not exist, it is added.
set_units(point_data, units_name)
point_data |
A harp_fcst object, or a data frame. |
units_name |
The name of the units of the data, e.g. "m/s", "kg/m\^2" etc. |
A An object of the same type as point_data
, but with the units
column modified to contain units_name
, or the units column added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.