db <- star_database(mrs_cause_schema, ft_num) |>
replace_attribute_values(name = "where",
old = c('1', 'CT', 'Bridgeport'),
new = c('1', 'CT', 'Hartford'))
db <- star_database(mrs_cause_schema, ft_num) |>
replace_attribute_values(name = "where",
attributes = c('REGION', 'State'),
old = c('1', 'CT'),
new = c('2', 'CT'))
ft <- flat_table('iris', iris) |>
replace_attribute_values(
attributes = 'Species',
old = c('setosa'),
new = c('versicolor')
)
Run the code above in your browser using DataLab