Skip to contents

Convert a numeric vector to a date - YYYY-MM-DD

Usage

convert_numeric_to_date(numeric_date)

Arguments

numeric_date

a numeric vector containing dates in the form YYYYMMDD

Value

a Date vector

Examples

convert_numeric_to_date(c(20210101, 19993112))
#> [1] "2021-01-01" NA