reshape_pdates {sdtmval}R Documentation

Reshape format of partial dates

Description

Re-arranges partial dates from a format of "UN-UNK-UNKN" ("DD-MMM-YYYY") to "UN/UN/UNKN" ("MM/DD/YYYY").

Usage

reshape_pdates(dates, output_sep = "/")

Arguments

dates

a character vector of partial dates

output_sep

the date component separator for the output, default is "/"

Details

Value

a character vector of partial dates in the format "UN/UN/UNKN" ("MM/DD/YYYY")

See Also

reshape_adates(), impute_pdates(), trim_dates(), vignette("Dates")

Examples

dates <- c(
  "UN-UNK-UNKN",
  "UN/UNK/UNKN",
  "UN-UNK-2017",
  "UN-Feb-2017",
  "05-Feb-2017",
  "05-UNK-2017",
  "05-Feb-UNKN",
  NA
)
reshape_pdates(dates)


[Package sdtmval version 0.4.1 Index]