tidy_rnorm(.n = 50, .mean = 0, .sd = 1, .num_sims = 1)
The number of randomly generated points you want.
The mean of the randomly generated data.
The standard deviation of the randomly generated data.
The number of randomly generated simulations you want.
A tibble of randomly generated.
This function uses the underlying stats::rnorm()
function to generate
data from the given parameters.
tidy_rnorm()
#> # A tibble: 50 x 3
#> sim_number x y
#> <fct> <int> <dbl>
#> 1 1 1 0.148
#> 2 1 2 -0.534
#> 3 1 3 -2.07
#> 4 1 4 0.618
#> 5 1 5 1.54
#> 6 1 6 -0.0592
#> 7 1 7 -0.106
#> 8 1 8 0.964
#> 9 1 9 -0.344
#> 10 1 10 1.09
#> # ... with 40 more rows