Snake-case names are great for coding but look terrible in tables and plots. Use this function to turn the WSDL, Shannon and Simpson snake-case index labels into Title Case Versions of themselves.

clean_index_factors(x, newline = FALSE)

Arguments

x

a character vector of snake-case WSDL, Simpson and Shannon index names (i.e. that came from a call to uri_diversity()).

newline

if TRUE the Title Case Versions will be separated by a newline ("\n") vs a space.