getFunctionValueOrDefault: Function Value or Default if NA

View source: R/default.R

getFunctionValueOrDefaultR Documentation

Function Value or Default if NA

Description

Take the function value or a default value if the function value is NA

Usage

getFunctionValueOrDefault(values, FUN, default, warningMessage = NA)

Arguments

values

vector of values given to FUN

FUN

function to which values are passed and which offers the argument "na.rm"

default

default value to be returned if all values are NA

warningMessage

Warning message given if the default was taken


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.