NAoperators: Addition of two numbers/vectors/matrices while replacing all...

Description Usage Details Examples

Description

Addition of two numbers/vectors/matrices while replacing all NAs by zeros.

Deduct two numbers/vectors/matrices while replacing all NAs by zeros.

Product of two numbers/vectors/matrices while replacing all NAs by zeros.

Division of two numbers/vectors/matrices while replacing all NAs by zeros.

Usage

1
2
3
4
5
6
7
a %+n% b

a %-n% b

a %*n% b

a %/n% b

Details

the two objects of appropriate class types.

Examples

1
2
3
4
c(1, 2, 4) %+n% c(3, 6, NA)
c(1, 2, 4) %-n% c(3, 6, NA)
c(1, 2, NA) %*n% 3
c(3, 6, NA) %/n% 3

vh-d/VHtools documentation built on May 3, 2019, 6:11 p.m.