nvl: Check value for validity and return it or a default

View source: R/qtl2api-utils.R

nvlR Documentation

Check value for validity and return it or a default

Description

Check value for validity and return it or a default

Usage

nvl(value, default)

Arguments

value

value to check

default

default value to use if value is "invalid"

Value

'value' if it is valid, 'default' otherwise


churchill-lab/qtl2api documentation built on April 17, 2025, 3:27 a.m.