exportFct_ensureUniqueColumns <- function(dat){
# check whether any colnames are duplicated
chkCols <- colnames(dat) %>% tolower
isDupl <- duplicated(chkCols)
if(any(isDupl)){
newCols <- ifelse(isDupl, paste0(chkCols, "_2"), chkCols)
colnames(dat) <- newCols
}
return(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.