Description Usage Arguments Value
View source: R/create_jitter_dt.R
This function creates a lookup dataframe where one column is the original key of an input dataframe and the other is a random number of days (by patient) to jitter the dates
1 | create_jitter_dt(dataset, keycol_name, max_days = 100, seed = 123)
|
dataset |
The input data.frame that contains a column which is the key (unique identifier) |
keycol_name |
A string that is the name of the column that the unique id is located in |
max_days |
An integer representing the largest number of days that the dates can be jittered |
seed |
The random seed used to generate the dataset. This can be used to reconstruct the id mapping at a later stage. |
A data.frame that contains 2 columns named original.ID and dates to jitter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.