View source: R/helper-dist-type-extract.R
dist_type_extractor | R Documentation |
Get the distribution name in title case from the tidy_
distribution
function.
dist_type_extractor(.x)
.x |
The attribute list passed from a |
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.
A character string
Steven P. Sanderson II,
tn <- tidy_normal()
atb <- attributes(tn)
dist_type_extractor(atb$tibble_type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.