clean_index_factors: Clean up diversity and evenness names

Description Usage Arguments

View source: R/clean-index-factors.R

Description

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.

Usage

1
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.


hrbrmstr/urldiversity documentation built on May 14, 2019, 4 a.m.