View source: R/random-tidy-triangular.R
| tidy_triangular | R Documentation |
This function generates tidy data from the triangular distribution.
tidy_triangular(
.n = 50,
.min = 0,
.max = 1,
.mode = 1/2,
.num_sims = 1,
.return_tibble = TRUE
)
.n |
The number of x values for each simulation. |
.min |
The minimum value of the triangular distribution. |
.max |
The maximum value of the triangular distribution. |
.mode |
The mode (peak) value of the triangular distribution. |
.num_sims |
The number of simulations to perform. |
.return_tibble |
A logical value indicating whether to return the result as a tibble. Default is TRUE. |
The function takes parameters for the triangular distribution
(minimum, maximum, mode), the number of x values (n), the number of
simulations (num_sims), and an option to return the result as a tibble
(return_tibble). It performs various checks on the input parameters to ensure
validity. The result is a data frame or tibble with tidy data for
further analysis.
A tibble of randomly generated data.
Steven P. Sanderson II, MPH
Other Continuous Distribution:
tidy_beta(),
tidy_burr(),
tidy_cauchy(),
tidy_chisquare(),
tidy_exponential(),
tidy_f(),
tidy_gamma(),
tidy_generalized_beta(),
tidy_generalized_pareto(),
tidy_geometric(),
tidy_inverse_burr(),
tidy_inverse_exponential(),
tidy_inverse_gamma(),
tidy_inverse_normal(),
tidy_inverse_pareto(),
tidy_inverse_weibull(),
tidy_logistic(),
tidy_lognormal(),
tidy_normal(),
tidy_paralogistic(),
tidy_pareto(),
tidy_pareto1(),
tidy_t(),
tidy_uniform(),
tidy_weibull(),
tidy_zero_truncated_geometric()
Other Triangular:
util_triangular_param_estimate(),
util_triangular_stats_tbl()
tidy_triangular(.return_tibble = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.