View source: R/generate_fake_posixct_column.R
| generate_fake_posixct_column | R Documentation |
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
)
like |
Optional POSIXct vector to mimic. If supplied, |
n |
Number of rows to generate. Required when |
start, end |
Optional POSIXct bounds to sample between when |
tz |
Timezone to use if |
na_prop |
Optional NA proportion to enforce in the output (0–1). If |
A POSIXct vector of length n.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.