tsEasyParseNamedArgs {RtsEva}R Documentation

Parse named arguments and assign values to a predefined argument structure.

Description

This function takes a list of named arguments and assigns their values to a predefined argument structure. The argument structure is a list with named elements representing the available arguments. If an argument is present in the list of named arguments, its value is assigned to the corresponding element in the argument structure. If an argument is not present, its value in the argument structure remains unchanged.

Usage

tsEasyParseNamedArgs(args, argStruct)

Arguments

args

A list of named arguments.

argStruct

A list representing the argument structure with named elements.

Value

A modified argument structure with values assigned from the list of named arguments.

Examples

args <- list(arg1 = 10, arg2 = "tanargue")
argStruct <- list(arg1 = 0, arg2 = "", arg3 = TRUE)
modifiedArgStruct <- tsEasyParseNamedArgs(args, argStruct)
modifiedArgStruct


[Package RtsEva version 1.0.0 Index]