parse_numeric: Parse numeric parameters and make sure vectors are the right...

Description Usage Arguments Value

Description

Sometimes a comma-separated string field needs to be parsed to a numeric vector.

Usage

1
parse_numeric(opt, varname, val_for_na = NA, length = 1)

Arguments

opt

A list containing option values, as per parse_args()

varname

Variable name to check

val_for_na

Value to replicate to specified length in the case of NA

length

The length of vector we should obtain

Value

Numeric vector


ebi-gene-expression-group/workflowscriptscommon documentation built on Feb. 20, 2022, 6:30 p.m.