transformNA: Replaces all NA's in data (data.frame, list, etc) with an...

View source: R/tools.R

transformNAR Documentation

Replaces all NA's in data (data.frame, list, etc) with an alternative

Description

Replaces all NA's in data (data.frame, list, etc) with an alternative

Usage

transformNA(data, na.alternative = "-")

Arguments

data

data.frame, list or ... that contains NA's which need to be replaced

na.alternative

the object with which NA's need to be replace. Be aware that a list or column of a data.frame may change class when taking this action!

Value

data with replaced NA's


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.