View source: R/errorlocation.R
errors_removed | R Documentation |
errors_removed
retrieves the errors detected by replace_errors()
errors_removed(x, ...)
x |
|
... |
not used |
errorlocation-class()
object
Other error finding:
errorlocation-class
,
expand_weights()
,
locate_errors()
,
replace_errors()
rules <- validator( profit + cost == turnover
, cost - 0.6*turnover >= 0
, cost>= 0
, turnover >= 0
)
data <- data.frame(profit=755, cost=125, turnover=200)
data_no_error <- replace_errors(data,rules)
# faulty data was replaced with NA
data_no_error
errors_removed(data_no_error)
# a bit more control, you can supply the result of locate_errors
# to replace_errors, which is a good thing, otherwise replace_errors will call
# locate_errors internally.
error_locations <- locate_errors(data, rules)
replace_errors(data, error_locations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.