| id {incadata} | R Documentation |
Construct id variable for patient data.
id(x, id = c("persnr", "pnr", "pat_id", "pn", "id"), ignore.case = TRUE)
x |
data frame |
id |
names of a possible id variable found in |
ignore.case |
should name matching be done regardless of character case? |
Character variable with either the first name from id found in
x or rownames(x) if no named column found.