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) ) }