View source: R/flat_table_transform.R
| replace_unknown_values | R Documentation |
Transforms the given attributes by replacing unknown values in them with the given value.
replace_unknown_values(ft, attributes, value)
## S3 method for class 'flat_table'
replace_unknown_values(ft, attributes = NULL, value)
ft |
A |
attributes |
A vector of names. |
value |
A value. |
A flat_table object.
flat_table
Other flat table transformation functions:
add_custom_column(),
remove_instances_without_measures(),
replace_empty_values(),
replace_string(),
select_attributes(),
select_instances(),
select_instances_by_comparison(),
select_measures(),
separate_measures(),
transform_attribute_format(),
transform_from_values(),
transform_to_attribute(),
transform_to_measure(),
transform_to_values()
iris2 <- iris
iris2[10, 'Species'] <- NA
ft <- flat_table('iris', iris2) |>
replace_empty_values() |>
replace_unknown_values(value = "Not available")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.