replaceNA: Replace NA Values

Description Usage Arguments

View source: R/replaceNA.R

Description

This function replaces all NAs in a vector or data.frame. If the vector (or column) is numeric, NAs get replaced by the median. If the vector (or column) is a character or factor, NAs get replaced by the mode.

Usage

1

Arguments

x

A vector or data.frame.


tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.