Skip to contents

Check whether the global variable LEGEND is up to date and update it if necessary

Usage

update_legend(
  legend_table = floodam.building::LEGEND,
  component_elementary = names(floodam.building::DAM)
)

Arguments

legend_table

data.frame, default to floodam.building::LEGEND

component_elementary

character

Value

updated data.frame, removing component_elementary that should not be present, adding those that should be (random selection of colors)