Learn R Programming

rkeops (version 2.2.2)

parse_extra_args: Parse formula for extra arguments in the formula not defined with an alias in the argument list.

Description

RKeOps does not support direct encoding of argument in the formula without an alias in the argument list. This function check if any argument are directly encoded in the formula without an alias.

Usage

parse_extra_args(formula)

Value

a boolean value indicating if extra args were found in the formula.

Arguments

formula

text string, an operator formula (see Details).

Author

Ghislain Durif

Details

Parse the formula for string such as

  • "YY(<pos>,<dim>)" where YY can be a formula input argument type (Vi, Vj or Pm), <pos> is the position of the corresponding input argument, and <dim> its inner dimension.

  • "Var(<pos>,<dim>,<type>)" where <pos> and <dim> are the position and inner dimension (c.f. previous point) and <type> is an integer encoding the formula input argument type with the following relation:

|---------|-------------------------|-----------|

keywordmeaningtype
Vivariable indexed by i0
Vjvariable indexed by j1
Pmparameter2
---------------------------------------------