grapes-or-grapes: Set the default value when not provided in a list

%or%R Documentation

Set the default value when not provided in a list

Description

Set the default value when not provided in a list

Usage

spec_val %or% default_val

Arguments

spec_val

The specified value to use (assuming it's provided)

default_val

The value to use as the default

Value

A value dependent on if the left-hand value is provided, or the default value specified on the right hand side


sportyR documentation built on May 29, 2024, 8:33 a.m.