parse_arg: Parse "parameter = value" pairs from a specified element in a...

View source: R/input_file_utils.R

parse_argR Documentation

Parse "parameter = value" pairs from a specified element in a list of arguments.

Description

Parse "parameter = value" pairs from a specified element in a list of arguments.

Usage

parse_arg(arguments, i = 1)

Arguments

arguments;

a character vector of arguments output by get_args.

i;

the element in the argument vector to parse.

Value

A 2-element character vector. The first element gives the parameter name; the second element gives the parameter value. If no equal sign is present in the argument, the parameter element is empty and the argument value is contained in the value element.


tabrasel/WetlandTools documentation built on Dec. 20, 2024, 8:50 a.m.