Description Usage Arguments Examples
Replaces all NAs with a specified replacement in a column that has "string" in its name
1 | replaceNAWithinCertainCols(x, replacement, string)
|
x |
data.table. |
string |
Character. A string that is in the target column name. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.