View source: R/empirical-tidy.R
tidy_empirical | R Documentation |
This function takes in a single argument of .x a vector and will
return a tibble of information similar to the tidy_
distribution functions.
The y
column is set equal to dy
from the density function.
tidy_empirical(.x, .num_sims = 1, .distribution_type = "continuous")
.x |
A vector of numbers |
.num_sims |
How many simulations should be run, defaults to 1. |
.distribution_type |
A string of either "continuous" or "discrete". The function will default to "continuous" |
This function takes in a single argument of .x a vector
A tibble
Steven P. Sanderson II, MPH
x <- mtcars$mpg
tidy_empirical(.x = x, .distribution_type = "continuous")
tidy_empirical(.x = x, .num_sims = 10, .distribution_type = "continuous")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.