recode_date: Convert date variables from character to date format

Description Usage Arguments See Also Examples

View source: R/prep-license.R

Description

A convenience function that also includes a summary of any input values thate weren't converted to dates (i.e., missing in output).

Usage

1
recode_date(df, date_var, fun)

Arguments

df

data frame that contains date variable

date_var

date variable stored as character

fun

function used to convert from character to date format

See Also

Other functions for preparing license data: check_raw_lines(), date_to_char()

Examples

1
# recode_date(cust, "dob", function(x) lubridate::ymd(str_sub(x, end = 10)))

southwick-associates/salicprep documentation built on Oct. 6, 2020, 12:03 p.m.