grapes-times-times-grapes: Multiply numbers only if at least one of them isn't zero or...

Description Usage Arguments Examples

Description

Multiply numbers only if at least one of them isn't zero or NA If both numbers are zero or NA, return zero

Usage

1
x %**% y

Arguments

x

First number

y

Second number

Examples

1
2
10 %**% 2 # == 20
10 %**% 0 # == 10

matthewgthomas/brclib documentation built on Feb. 21, 2020, 6:18 p.m.