ifna: Replace NA, NaN, Inf values

Description Usage Arguments Value Examples

Description

This function will replace all NA, NaN, Inf with given values

Usage

1
ifna(x, y)

Arguments

x

data to check for NA, NaN, Inf

y

values(s) to be used in place of NA, NaN, Inf

Value

updated data

Examples

1
2
3
4
## Not run: 
ifna(c(1,NA,2,Inf,3), 4)

## End(Not run)

drewgriffith15/griffun documentation built on May 15, 2019, 1:56 p.m.