sim2tbl | R Documentation |
Reshapes a simulation data vector into a matrix and converts it into a tibble.
sim2tbl(x, ncol = 1)
x |
Vector of data values |
ncol |
If integer, number of columns by which to split the vector.
Use a negative value to duplicate the vector into a longer one-column tibble instead of
splitting it. If integer vector, then each element in the |
A tibble containing the simulation data
read_data
sim2tbl(1:3)
sim2tbl(1:3, ncol = 3)
sim2tbl(1:3, ncol = -2)
sim2tbl(1:3, ncol = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.