| as.data.frame.simulab_sim | R Documentation |
Convert a simulation component to a tidy data frame
## S3 method for class 'simulab_sim'
as.data.frame(x, row.names = NULL, optional = FALSE, what = "data", ...)
x |
A |
row.names |
Ignored. |
optional |
Ignored. |
what |
Single string naming the table to return, default |
... |
Reserved for future methods. |
A plain base data.frame (the simulab_sim class and attributes
are dropped) containing the requested simulation table.
result <- simulate_ttest(
n_a = 10,
n_b = 10,
mean_a = 0,
mean_b = 0.5,
seed = 1
)
as.data.frame(result)
as.data.frame(result, what = "parameters")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.