nuke | R Documentation |
Replace All Values in Data Frame
nuke( data, nuke_value = NA, ash = 0, exact = TRUE, where = NULL, which_cols = colnames(data) )
data |
The data frame to which you're replacing values. |
nuke_value |
The value you want to replace with |
ash |
The value you want to replace |
exact |
Logical indicating whether or not you want to use
|
where |
Filter applied to the data indicating the conditions required
for the values to be replaced. Requires a string input, but functions the
same way |
which_cols |
The columns across which the replacements will be applied.
Use this if some columns that don't contain |
A data frame with the all occurrences of nuke_value
replaced with ash
.
nuke(mtcars, 6, "IT WORKED AGAIN", where = "mpg == 21.0") nuke(mtcars, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.