dist_type_extractor: Extract Distribution Type from Tidy Distribution Object

View source: R/helper-dist-type-extract.R

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

Value

A character string

Author(s)

Steven P. Sanderson II,

Examples


tn <- tidy_normal()
atb <- attributes(tn)
dist_type_extractor(atb$tibble_type)


TidyDensity documentation built on Nov. 2, 2023, 5:38 p.m.