Replace values in a dataframe. H2odataframes not yet supported. This should be used for general and universal replacements. It should not be used for imputing values. If you wish to use a mean/median/mode replacement function, check out ezr.impute
1 2 3 | ezr.replace(dataset, existing_value, replacement_value,
comparison_sign = "equal", use_fields = NULL,
exclude_fields = NULL)
|
dataset |
Dataframe |
existing_value |
The existing value. |
replacement_value |
The replacement value. |
comparison_sign |
Equal, greater_than, less_than, are valid values |
fields |
Default is to check and replace in every column. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.