noneDefault: Provide a default if a value is 'NULL' or 'NA'

Description Usage

View source: R/utils.R

Description

This is useful mostly when piping lists of data through map functions. Often, one member of the pipeline will be NA or NULL where an empty data.frame or xts is needed. This is a great for selectively mapping that to the correct type.

Usage

1
noneDefault(value, default)

red-swan/swanR documentation built on July 11, 2020, 1:31 a.m.