A function that switches out the R name for a distribution with the real name, and back again.

dist_name(dist, toR = FALSE)

Arguments

dist

A string with a distribution name, e.g. "lnorm" or "log-normal".

toR

Boolean as to whether it's to the R name or not. Defaults to false.