convert_date_numeric_stdform {IPDFileCheck}R Documentation

Helper function to keep date formats in year-month-date

Description

Helper function to keep date formats in year-month-date

Usage

convert_date_numeric_stdform(column, index, orderby = "dmy")

Arguments

column

a data frame or a vector

index

those correspond to valid date in numeic form (omitting non response code or no entry)

orderby

give the order such as mdy, dmy etc where d refers to day, m to month and y to year

Value

entry corrected entries as in standard date format

Examples

convert_date_numeric_stdform(c("01/01/2000", "02/02/2002"), c(1, 2), "dmy")

[Package IPDFileCheck version 0.8.1 Index]