Create synthetic timestamps either by mimicking an existing POSIXct vector
(using its range and NA rate) or by sampling uniformly between start and end.
generate_fake_posixct_column(
like = NULL,
n = NULL,
start = NULL,
end = NULL,
tz = "UTC",
na_prop = NULL
)A POSIXct vector of length n.
Optional POSIXct vector to mimic. If supplied, n defaults to length(like),
the output range matches range(like, na.rm = TRUE), and the NA rate is copied unless
you override with na_prop.
Number of rows to generate. Required when like is NULL.
Optional POSIXct bounds to sample between when like is NULL.
Timezone to use if like has no tzone (default "UTC").
Optional NA proportion to enforce in the output (0–1). If NULL and
like is provided, it copies the NA rate from like. If like is NULL, defaults to 0.