Description Usage Arguments Value Examples
View source: R/utility_functions.R
Extract multiple indices inside bracket(s) as a list
1 | extract_index_nd(x, dim_names = NULL)
|
x |
Character vector. |
dim_names |
Optional character vector of dimension names.
If |
Dataframe with columns:
Variable
, containing x
where brackets have been removed
Index
, a list containing values within the brackets.
If dim_names
is not NULL, Index
is replaced by columns with names dim_names
containing numeric values.
1 | extract_index_nd(c("sigma", "sigma[1]", "sigma[1, 1]", "sigma[1][2]"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.