convert_numeric_to_date {cleanepi} | R Documentation |
Convert numeric to date
Description
Convert numeric to date
Usage
convert_numeric_to_date(data, target_columns, ref_date, forward = TRUE)
Arguments
data |
The input |
target_columns |
A |
ref_date |
A |
forward |
A |
Value
A <data.frame>
or <linelist>
where the column of
interest are updated
Examples
data <- readRDS(system.file("extdata", "test_df1.RDS", package = "cleanepi"))
data <- convert_numeric_to_date(
data = data,
target_columns = "recruited_on_day",
ref_date = as.Date("2022-10-13"),
forward = TRUE
)
[Package cleanepi version 1.1.0 Index]