make_tbl_variable_range: Make a tibble with columns representing a range

Description Usage Arguments Details Value

View source: R/generics.R

Description

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).

Usage

1

Arguments

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 ( tibble::add_column())

Details

It can be used to convert messy rstan::extract output from multidimensional variables, to a more manageable form.

Value

a tibble


lgaborini/rstanBF documentation built on March 10, 2021, 1:12 p.m.