get_parameter_colnames: Get parameter column names

Description Usage Arguments Details Value Examples

View source: R/list_misc.R

Description

get_parameter_colnames gets parameter column names from fits_long data frame.

Usage

1
get_parameter_colnames(fits_long, redundant = NULL)

Arguments

fits_long

data frame with models to estimate.

redundant

vector of column names NOT corresponding to parameters. If NULL then built-in vector is used.

Details

Variable "h" is considered as parameter. Just takes column names of fits_long and removes column names used to identify model, shift, sample etc. One row of fits_long is sufficient as function works only with column names.

Value

vector of column names corresponding to parameters of models.

Examples

1
2
3
fits_long <- tibble::tibble(h_required = c(TRUE, TRUE, FALSE, FALSE, FALSE),
   h = c(1, 2, 1, 2, 3), params = c(1, 1, 2, 2, 5))
get_parameter_colnames(fits_long)

bdemeshev/torro documentation built on May 21, 2019, 8:36 a.m.