replace_na: Replace NAs

Description Usage Arguments Examples

Description

Replace all NA's with another value in a data.frame or matrix.

Usage

1
replace_na(dat, repl)

Arguments

dat

A data.frame or matrix

repl

Replacement value. Defaults to 0.

Examples

1
replace_na(matrix(c(1,NA,3,4), ncol = 2), repl = 0)

opelr/opelR documentation built on May 3, 2019, 5:49 p.m.