make_tbl_variable_range.Rd
Make a tibble with columns representing a range.
All column will have the same base name, and will follow the format of 'text[col_idx]'
, indexed from 1 to ncol(x.samples)
.
make_tbl_variable_range(x.samples, text, ...)
x.samples | a matrix or data.frame which will be converted and re-named to a tibble |
---|---|
text | the base name for the new column names |
... | additional value-name pairs which will be added as new columns ( |
a tibble
It can be used to convert messy rstan::extract
output from multidimensional variables, to a more manageable form.