Learn R Programming

packDAMipd (version 1.1.0)

find_parameters_btn_operators: Function to return parameters with in a expression containing operators

Description

Function to return parameters with in a expression containing operators

Usage

find_parameters_btn_operators(expr)

Value

parameters in the expression expr

Arguments

expr

an expression

Details

This function returns the parameters between the operators if the state value or probabilities are defined as expressions, we need to extract the parameters and then assign First the position of all operators are found and then return the parameters separated by those operators This happens only for one level find_parameters_btn_operators("a+b") provides a and b but for find_parameters_btn_operators("mean(a,b)+b") provides mean(a,b) and b

Examples

Run this code
find_parameters_btn_operators("a+b")

Run the code above in your browser using DataLab