if.null: if.null

Description Usage Arguments Examples

View source: R/tools.R

Description

This function sreplaces the NULL in a list with a value

Usage

1
if.null(data, subs = "")

Arguments

data

an object to be checked if it's NULL

subs

substitute the NULL values with subs (Defauts empty string)

Examples

1
if.null(airquality$Ozone, -1)

etabari/ehsanr documentation built on Aug. 5, 2019, 4:07 p.m.