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

# S3 method for legend
update(legend = LEGEND, component.elementary = names(DAM))

Arguments

LEGEND

data.frame as in csv file LEGEND.csv

damaging

data.frame as in component.elementary.csv

Value

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