#' Make a redundant vector individualized.
#'
#' @param vec A vector. Can be a factor or character.
#' @return An individualized vector of character class
#' @export
makeRedundantVectorIndividualized <- function(vec) {
u <- as.character(vec)
un <- unique(u)
for(i in 1:length(un)){
u[un[i] == u] <- makeUniqueCasesIndividualized(u[un[i] == u])
}
return(u)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.