powered by
Make IDs with fixed length and a prefix (e.g., S001, S002, ..., S100).
make_id(n = 100, prefix = "S", digits = 0, suffix = "")
a vector of IDs
the number of IDs to generate (or a vector of numbers)
the prefix to the number (default "S")
the number of digits to use for the numeric part. Only used if this is larger than the largest number of digits in n.
the suffix to the number (default "")
make_id(20, "SUBJECT_") make_id(10:30, digits = 3)
Run the code above in your browser using DataLab