dist_type_extractor {TidyDensity} | R Documentation |
Extract Distribution Type from Tidy Distribution Object
Description
Get the distribution name in title case from the tidy_
distribution
function.
Usage
dist_type_extractor(.x)
Arguments
.x |
The attribute list passed from a |
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.
Value
A character string
Author(s)
Steven P. Sanderson II,
Examples
tn <- tidy_normal()
atb <- attributes(tn)
dist_type_extractor(atb$tibble_type)
[Package TidyDensity version 1.5.0 Index]