Skip to contents

Transforms the given attributes by replacing unknown values in them with the given value.

Usage

replace_unknown_values(ft, attributes, value)

# S3 method for flat_table
replace_unknown_values(ft, attributes = NULL, value)

Arguments

ft

A flat_table object.

attributes

A vector of names.

value

A value.

Value

A flat_table object.

Examples


iris2 <- iris
iris2[10, 'Species'] <- NA
ft <- flat_table('iris', iris2) |>
  replace_empty_values() |>
  replace_unknown_values(value = "Not available")