Learn R Programming

IPDFileCheck (version 0.8.1)

convert_date_numeric_stdform: 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")

Value

entry corrected entries as in standard date format

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

Examples

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

Run the code above in your browser using DataLab