
Extract Distribution Type from Tidy Distribution Object
Source:R/helper-dist-type-extract.R
dist_type_extractor.RdGet the distribution name in title case from the tidy_ distribution
function.
Details
This will extract the distribution type from a tidy_ distribution
function output using the attributes of that object. You must pass the attribute
directly to the function. It is meant really to be used internally.
You should be passing if using manually the $tibble_type attribute.
Examples
tn <- tidy_normal()
atb <- attributes(tn)
dist_type_extractor(atb$tibble_type)
#> [1] "Gaussian"