-
Notifications
You must be signed in to change notification settings - Fork 11
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
unexpected behaviour: qc() removes leading zeroes #15
Comments
Thank you very much for the issue report. And also an apology, as you ran into this while working it likely caused trouble. I may be wrong, but I suspect it can not be fixed using base-R methods. Perhaps Notice the following errors out even thought the argument is never used (whereas the traditional example
Now we look at the traditional capture methods,
In both cases the argument is converted from free text I am documenting this issue in the If you think I am wrong or have any potential solutions, please do re-open the issue. |
No need for an apology, I'm just happy that it's available - and I was just eyeballing data when it happened, so no damage done. I see your point and agree. I'm not a rlang user, base-R/data.table is more my thing. So I wouldn't know if there is a solution there - I might investigate it, but then again it's such an edgecase even for most of my uses that learning rlang just for that seems like a bit much (I tried a couple of different google searches this morning, but it's hard to find something useful, because if it's there, it is lost in the sea of people talking about how to add leading zeroes in general - I think you have to be quite profficient in rlang to know wether it's possible in that framework or not ) |
My guess is researching |
Emil, thank you for your time and positive comments. I think I now have something fairly close to your use case. I would love for you to try it out. What I have done is added a new function called With the dev version (2.0.9, not on cran; can install with
If you have the time I would love your feedback. I find I use |
Great, thank you for making that! I will test it out and will reply with feedback if I have any. Incidentally, I'm the one who suggested the bc() function a while ago - I'm using it alot as well, and am happy you had the technical provess to make it (and also found good use for it yourself) |
Hi,
qc(), which is a favorite of mine and an integral part of my workflow, produces one unexpected result - given that the name of the function is "quoted concenate":
The background is I have some identification numbers that are numbers-only, but some contain leading zeroes. I can't use qc() to select them :)
The text was updated successfully, but these errors were encountered: