The pmdplyr library accepts the use of multiple ID variables. However, you may wish to combine these into a single variable, or renumber the single variable you already have for some reason.
id_variable(..., .method = "number", .minwidth = FALSE)
variables (vectors) that, together, make up the ID variables in the data and uniquely identifies the individual. Note that
By default, id_variable() will create a unique numeric identifier out of your ID variables, sequential following the order in the original data (
.method='number'). However, you may want to remove the ordering and assign IDs randomly (
.method='random'), or preserve all the original information and create a single fixed-width character ID variable that contains all the original information (