op-null-default: Default value for 'NULL'

Description Usage Arguments Value

Description

This infix function makes it easy to replace NULLs with a default value. It's inspired by the way that Ruby's or operation (||) works.

Usage

1
x %||% y

Arguments

x, y

If x is NULL, will return y; otherwise returns x.

Value

A vector of x or y


distribglm documentation built on April 15, 2021, 5:06 p.m.