ifna: Replace NA, NaN, Inf values

Description Usage Arguments Value Examples

View source: R/utils.R

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 Nov. 21, 2018, 8:24 p.m.