Learn R Programming

postpack (version 0.5.4)

drop_index: 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)

Value

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

Arguments

params

Node names.