make_period_col: make_period_col

Description Usage Arguments Value

Description

make_period_col

Usage

1
make_period_col(df, colname, split_dates, period_labels, new_colname)

Arguments

df

data frame to which we want to add a period column

colname

column in df containing all the dates on which the period established

split_dates

vector of strings representing the date cut-offs of the periods. Note the first entry must a date before the earliest date in colname and the last date must be a date after the final date in colname

period_labels

labels for periods split by split_dates

new_colname

name of new column created containing the period into which the date falls

Value

df with an extra column of periods


HorridTom/clahrcnwlhf documentation built on May 7, 2019, 4:02 a.m.