drop_index: Extract the base node name of a parameter

View source: R/utils.R

drop_indexR Documentation

Extract the base node name of a parameter

Description

Removes square brackets, numbers, and commas that represent the index of the node element in question. Returns just the node name.

Usage

drop_index(params)

Arguments

params

Node names.

Value

A character vector with the same length as params, with no indices included. For example, "a[1]" becomes "a".

Note

This is not a function users will generally use directly.


bstaton1/codaTools documentation built on Jan. 1, 2023, 12:17 p.m.