eplusr icon indicating copy to clipboard operation
eplusr copied to clipboard

Add methods to remove fields

Open hongyuanjia opened this issue 4 years ago • 0 comments

Currently there is no directly way to remove fields. Probably can add a new parameter .remove in Idf$set()

Take the construction below as an exmaple:

Construction,
    Const,           !- Name
    Layer1,          !- Outside Layer
    Layer2,          !- Layer 2
    Lyaer3;          !- Layer 3

If we want to remove Layer2 and move Layer3 to field Layer 2, we can do

idf$set(Const = list(Layer_2 = NULL), .remove = TRUE)

The results would be

Construction,
    Const,           !- Name
    Layer1,          !- Outside Layer
    Layer3,          !- Layer 2
    ;                !- Layer 3

hongyuanjia avatar Mar 05 '20 05:03 hongyuanjia