powered by
Make an educated guess about the name of the ID variable from a dataset
guess_ID_variable(dat, suppressWarnings = FALSE)
if exactly one possible
a dataset with names (list, data.frame, tibble)
list
data.frame
tibble
(logical) suppress warning messages if you know what you are dooing
dat <- data.frame(ID = c(1,2,3,4,5), other = c(1,2,3,4,5)) guess_ID_variable(dat)
Run the code above in your browser using DataLab