null_if_na: Returns NULL if provided value is NA

View source: R/utils.R

null_if_naR Documentation

Returns NULL if provided value is NA

Description

Returns NULL if provided value is NA

Usage

null_if_na(value)

Arguments

value

str

Value

NULL or str

Examples

vector <- c(1, 2, 3)

null_if_na(vector[1])
null_if_na(vector[10])

AndersAskeland/chewr documentation built on June 23, 2022, 11:07 a.m.