Merge redundant objects into one

merge_object(idf, class)

Arguments

idf

An eplusr::Idf object

class

A character vector of class names in current eplusr::Idf. If NULL, all classes in current eplusr::Idf object will be used.

Value

The modified object itself, invisibly

Details

Redundant objects here refer to objects that have different names but all other field values are the same.

merge_object() will only keep the first object and remove all redundant objects. The field value references are handled automatically, i.e. all field values that originally refer to the redundant objects will be redirected to the object that is kept.

Examples

if (FALSE) { merge_object(idf, "ScheduleTypeLimits") }