replaceNAWithinCertainCols: Replaces NAs in certain columns

Description Usage Arguments Examples

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 May 6, 2019, 12:07 a.m.