cvmartin
10/12/2017 - 8:20 AM

htmlize name

Converts a string so it is ready to use in html in a tagname, for instance. It makes the name lowercase, and substitutes paces for "-"

htmlize_name <- function(name){
  tolower(
    gsub(" ","-",name)
  )
}