View source: R/local_functions.R
time_converter | R Documentation |
Convert the time units in plots
time_converter(
dataframe,
time_colname,
conv_timecolname,
former_unit,
new_unit
)
dataframe |
dataframe for which a column with numerical time values should be converted. |
time_colname |
name of column with time (numerical) values to be converted to a different time unit. |
conv_timecolname |
name of the column after time units conversion. |
former_unit |
former time unit. Character string among the following: |
new_unit |
new time unit. Character string among the following: |
a dataframe with values converted to new time unit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.