create_trend_tidy: Append a trend variable

Description Usage Arguments Examples

View source: R/create_trend_tidy.R

Description

Based on a date column, append a trend variable to a data frame

Usage

1

Arguments

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)

Examples

1
  create_trend(frequency=4, date_var = "date")

aranryan/arlodr documentation built on Oct. 8, 2020, 12:46 p.m.