View source: R/create_trend_tidy.R
create_trend_tidy | R Documentation |
Based on a date column, append a trend variable to a data frame
create_trend_tidy(df, date_var, frequency)
df |
Data frame to be modified |
date_var |
Column containing the date (enter as character vector) |
frequency |
Number of period per year (enter as number) |
create_trend(frequency=4, date_var = "date")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.