Skip to main content
8 events
when toggle format what by license comment
May 5, 2023 at 8:04 comment added jpm92 Question has been updated. I have managed to accomplish what I was looking for with reframe() and across() but it's still not the best approach I think. Let me know if you can improve it and thanks a lot, really :)
May 5, 2023 at 6:35 comment added TarJae Could you add an extended example?
May 4, 2023 at 19:31 comment added jpm92 I know it is, but as I mentioned, I have 20 more columns apart from B that I need to retain that I didn't include in the reprex to simplify it, how could I retain all of them without having to manually specify them in the code?
May 4, 2023 at 18:42 comment added TarJae I am sorry but my output is exact the same as your desired output?
May 4, 2023 at 18:39 comment added Azor Ahai -him- @jpm92 Just group_by(A, B) if B is always the same
May 4, 2023 at 18:37 comment added jpm92 Sorry, I mentioned it but maybe I wasn't clear. I need to retain every column in the original df, not only B. Is it still possible to accomplish this with this approach? (without having to write down manually 20 columns, of course :D)
S May 4, 2023 at 18:24 history answered TarJae CC BY-SA 4.0
S May 4, 2023 at 18:24 history notice added TarJae Posted by Recognized Member/Admin in R Language