add_variable_monthweek: Add additional time variables to a dataframe based on an...

Description Usage Arguments Value

View source: R/add_time_variable.R

Description

Add additional time variables to a dataframe based on an existing date/time variable.

Usage

1
add_variable_monthweek(df, datevar = "date")

Arguments

df

A dataframe.

datevar

A char string of the date variable.

Value

df

Returns a df containing the created variables: month, month.abb, monthday, week, weekday, etc.


kang-yu/lazyu documentation built on May 30, 2019, 11:42 a.m.