Make a toy data set for testing and demo. This is for internal use purpose and not intended to be called by users.
make_test_dat(
vals_kept = c("304", "305", 3040:3049, 3050:3059),
noise_val = "999",
IDs = 1:50,
date_range = seq(as.Date("2015-01-01"), as.Date("2020-12-31"), by = 1),
nrows = 100,
n_any = 50,
n_all = 10,
seed = NULL,
answer_id = NULL,
type = c("data.frame", "database")
)A data.frame or remote table from 'dbplyr'.
A vector of values that suppose to be identified.
A vector of values that are not meant to be identified.
A vector of client IDs.
A vector of all possible dates in the data.
Number of rows of the output.
Number of rows to be identified if the criteria is that if any target column contains certain values.
Number of rows to be identified if the criteria is that if all target columns contain certain values.
Seed for random number generation.
Column name for the indicator of how the row should be identified: any, all, and noise.
Output type, "data.frame" or "database".