-
Notifications
You must be signed in to change notification settings - Fork 103
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
Added delete of value labels to the Prepare > Column: Factor > View Levels/Labels dialogue using delete key in column metadata #7247
Conversation
@dannyparsons could we have a discussion on this? |
@N-thony that seems fine, as far as it goes, until you have discussed with @dannyparsons Keep asking him!
Isn't that the sort of thing you want as your function. I also tried with:
Once sorted, then we should also see what needs to change in the metadata window. Currently it just seems to mess up the factor! |
|
…/master update
…/master update
…/github.com/N-thony/R-Instat into issue7073-add-delete-to-view-label-dialogue
@rdstern @shadrackkibet I have added the delete labels feature on View Levels/Labels dialogue, and in addition I have added the possibility of deleting the labels from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony I don't know if you checked the results of what you have done with the delete?
I first tried deleting all in the survey data. Then I found that the levels/Labels dialogue doesn't work at all. And the Labels has = NA for all variables, while perhaps it should be NA.
When I started again and deleted just the fert (which I had made a labelled factor, Then I was still ok examining the other factors with the Levels/Labels, but not the fert that I had deleted.
When choosing the variables I wonder if the data selector could just have the variables that have value labels to delete? (Perhaps ideally where there are none, there might be a message saying No Variables have Value Labels to Delete.
I also notice that when there are no labelled variables, then that item is absent in the metadata. For example, look at the survey data when imported. There is no Value Label entry. If you then make fert into a factor, then it has value labels and the entry is provided. I suggest if you delete value labels from the data frame, then it might delete the entry completely, rather than keeping it with NA in every variable. |
@rdstern of course, I did the test and it is very trivial to notice that, I was wondering why it was adding |
@rdstern @shadrackkibet I have resolved the comment above and made a small change in the used R function here. |
@lloyddewit @rdstern I resolved and commented your reviews above. Please test/check if you are happy with? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still happy and relieved to approve this. If possible I would still like the selector to indicate and just show the Labelled Variables. But that may come later
@N-thony there are many comments above still unresolved. I started going through them and stating '@N-thony this still needs resolving' buth there are too many. Please go through all the comments again (some may be hidden) and ensure that you've pushed all your changes, thanks |
Co-authored-by: lloyddewit <[email protected]>
I think all is resolved now. |
@N-thony Thank you for the changes. there are 3 comments that still need to be resolved. If you make those changes, then I can approve, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony all my comments are now resolved, thanks
@rdstern Please could you test again? |
@N-thony Will you implement this in a separate PR? |
@lloyddewit we just had discussions about this. Just a few things to sort out then we can merge. |
…/github.com/N-thony/R-Instat into issue7073-add-delete-to-view-label-dialogue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lloyddewit over to you.
@rdstern If you're able to retest and approve then we can merge, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
Fixes (partially) #7073
This is still a work in progress.
@dannyparsons I need your help here. Could we have a call? Thanks