View source: R/m.since.assign.R
m.since.assign | R Documentation |
This function will convert date columns to month-since columns (months since first date in time series) and assigns them to a new data frame.
m.since.assign(data, date_list, to = "months")
data |
enter data set with date columns. |
date_list |
enter date column names (str; using e.g., c("date1", "date2" ...) notation) |
to |
enter the format in which you would like the time difference output (e.g., days, weeks, months, years) |
format |
format the entered date columns should be read as. |
m.since.assign()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.