getval: getval

View source: R/getval.R

getvalR Documentation

getval

Description

Returns val if length(val)>1. Otherwise it runs through args=list(...) until it finds an element with length(args[[i]])>0 and returns it. If everything fails NULL will be returned.

Usage

getval(val, ...)

Arguments

val

current value

...

sequence of alternative values

Value

a value

Examples

getval(NULL, 0)
getval(1, 0)

sigbertklinke/smvgraph documentation built on Dec. 10, 2022, 9:13 a.m.