Skip to contents

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