replaceNAWithinCertainCols: Replaces NAs in certain columns

Description Usage Arguments Examples

View source: R/replaceNAWithinCertainCols.R

Description

Replaces all NAs with a specified replacement in a column that has "string" in its name

Usage

1
replaceNAWithinCertainCols(x, replacement, string)

Arguments

x

data.table.

string

Character. A string that is in the target column name.

Examples

1
2
3
4
x <- data.table::fread(system.file("extdata", "NA.csv", package = "nladwa"))
print(x)
replaceNAWithinCertainCols(x = x, replacement = "space", string = ".a")
print(x)

Braja93/braja documentation built on June 1, 2017, 5:19 p.m.