replace_null: Replace NULL

View source: R/helpers.R

replace_nullR Documentation

Replace NULL

Description

This function provides a simple way to replace NULLs. It's will be most useful in conjunction with purrr functions when working with lists

Usage

replace_null(x, replacement = NA_character_)

Arguments

x

element to (potentially) replace

replacement

replacement for NULL. Default is NA_character_

Examples

## Not run: 
a <- NULL
replace_null(a)

## End(Not run)

ekholme/eemisc documentation built on May 30, 2022, 6:34 p.m.