powered by
Tracks manual fixes performed on a variable in a data.frame
manual_fix(data, variable, subset, newvalues = NULL)
A data.frame
A character string with the name of the variable to be fixed
A logical expression for selecting the cases to be fixed
New value or values that will take the cases selected by subset parameter.
subset
iris2 <- manual_fix(iris, "Petal.Length", Petal.Length < 1.2, 0) track_changes(iris2)
Run the code above in your browser using DataLab