Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to remove fields #217

Open
hongyuanjia opened this issue Mar 5, 2020 · 0 comments
Open

Add methods to remove fields #217

hongyuanjia opened this issue Mar 5, 2020 · 0 comments
Assignees
Milestone

Comments

@hongyuanjia
Copy link
Owner

hongyuanjia commented Mar 5, 2020

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 hongyuanjia self-assigned this Mar 5, 2020
@hongyuanjia hongyuanjia modified the milestones: 0.14.0, future Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant