cdate: fix censored dates

View source: R/cdates.R

cdateR Documentation

fix censored dates

Description

fix censored dates of the type '20110000' or '20110200' by selecting the midpoint of the censored time interval. If a lower bound is given, the midpoint between this point and the end of the censored interval is chosen.

Usage

cdate(
  x,
  sep = NULL,
  low.bound = NULL,
  verbose = TRUE,
  bound4all = FALSE,
  ignore.na = TRUE
)

Arguments

x

dates, possibly censored, as character or numeric (e.g. 20070101)

sep

separator in x, if any

low.bound

the lower bound

verbose

logical; print additional info, maybe

bound4all

logical (default FALSE); apply bound also to uncensored dates?

ignore.na

logical; ignore missing values in x?


renlund/datma documentation built on June 2, 2025, 5:12 a.m.