ifnull: Replace a Value with an Alternative if it is NULL

ifnullR Documentation

Replace a Value with an Alternative if it is NULL

Description

Replaces the focal input with the alternative value if it is NULL.

Usage

ifnull(x = NULL, alt = NULL)

Arguments

x

Focal input.

alt

Alternative value.

Value

x if not NULL, alt otherwise.

See Also

Other utilities: file_ext(), foy(), messages, named_null_list(), package_version_finder(), round_na.interp(), update_list()

Examples

   ifnull(NULL, 123)
   ifnull(TRUE, 123)
   ifnull(FALSE, 123)


weecology/portalPredictionsModels documentation built on Jan. 31, 2024, 12:03 p.m.