# NOT RUN {
## sequential string of numbers in label
Labels <- uniqID_maker(string = "string", level = c(1:5), digits = 2)
Labels
## can also use nonsequential strings in input for levels
level <- c(1:5, 8:10, 999:1000)
Labels <- uniqID_maker(string = "string", level = level, digits = 4)
Labels
## Using the ending_string to produce labels with unique endings
## this is different from hierarchical labels with two levels as there
## is no numbering, just the text string
Labels <- uniqID_maker(string = "string", level = c(1:5), digits = 2, ending_string = "A")
Labels
Labels <- uniqID_maker(string = "string", level = c(1:5),
digits = 2, ending_string = c("A", "B"))
Labels
if(interactive()){
## function using user prompt does not use any of the other parameters
Labels <- uniqID_maker(user = TRUE)
Labels
}
# }
Run the code above in your browser using DataLab