View source: R/flat_table_transform.R
replace_empty_values | R Documentation |
Transforms the given attributes by replacing the empty values with the unknown value.
replace_empty_values(ft, attributes, empty_values)
## S3 method for class 'flat_table'
replace_empty_values(ft, attributes = NULL, empty_values = NULL)
ft |
A |
attributes |
A vector of names. |
empty_values |
A vector of values that correspond to empty values. |
In addition to the NA or empty values, those indicated (e.g., "-") can be considered as empty values.
A flat_table
object.
flat_table
Other flat table transformation functions:
add_custom_column()
,
remove_instances_without_measures()
,
replace_string()
,
replace_unknown_values()
,
select_attributes()
,
select_instances_by_comparison()
,
select_instances()
,
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.