-
Notifications
You must be signed in to change notification settings - Fork 979
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
Room for new data.table cheat sheet on the homepage? #3374
Comments
I like this. How easy is it to edit this format? Or would we assign you to add new topics? |
There's a powerpoint. Editing is doable but definitely a hassle since it involves a lot of copy/pasting. I would be happy to update the cheat sheet by assignment if you want new topics covered and I'll accept pull requests as well. Currently, there's no more room for new stuff, though, but I'm thinking of a separate fread+fst cheat sheet (fast data import) which would make room for more stuff. |
Your work on cheatsheet is highly appreciated. I also think that many users already had opportunity to learn from cheatsheet you made. So thank you for that! I would avoid using a cheatsheet made from powerpoint because it will be difficult in maintenance. I also think we should aim to provide a single data.table cheatsheet. So ideally would be to merge content from |
Thank you @jangorecki ! I agree that a powerpoint based cheat sheet is too difficult to maintain. My choice of software was solely guided by the fact that I had to conform to the RStudio visual guidelines for cheat sheets in order to get it on their website. They had a powerpoint template ready to go... But something made in Rmarkdown or the like would be way more optimal. I'll see if there's anything I can do about it but others are more than welcome to give it a shot as well :) |
Thanks for info on that. I filled: https:/rstudio/cheatsheets/issues/97 |
For each section, is there scope to hyperlink to relevant data.table vignettes? |
hi @epetrovski I was wondering if you could please update the cheat sheet section "RESHAPE TO LONG FORMAT" to use the new features in data.table 1.15.0 released today? > melt(data.table(id=c("A","B"),a_x=1,a_z=2,b_x=3,b_z=4), measure.vars=measure(value.name, y, sep="_"))
id y a b
<char> <char> <num> <num>
1: A x 1 3
2: B x 1 3
3: A z 2 4
4: B z 2 4 |
Sorry, but it's been ages since I've used |
thanks for the info @epetrovski |
Hi @tdhock I would like update the cheat sheet section "RESHAPE TO LONG FORMAT" |
@tdhock The updated is done please check if it is ok. I made two changes ( yours and removed contact) |
Could you also update the data.table version and date in the footnote? |
thanks @MaraDestefanis that is a great improvement. |
Also for the argument docs how about:
|
Also if you think it is appropriate, and if there is enough room, could you please add some documentation for measure()? |
@ben-schwen done. @tdhock done, please check. |
datatable_cheat_sheet_TDH_14_Feb_2024.pdf Hi Mara, Thanks for the quick revisions! I changed a couple of things, what do you think?
|
@tdhock I am delighted to collaborate, thanks to you. I'll squeeze in some time this weekend to make those changes and hit you back. (At this moment I trust your judgment until I have better expertise). Let's go forward. |
Hi @tdhock I add files, you want to check it, I did it this way. tell me if you want me to change something |
hi @MaraDestefanis thanks for sharing. Can you please tell me what are the differences/improvements in your version, with respect to my revisions from #3374 (comment) ? |
hi @tdhock ,
Please point out the details that I may have misunderstood, and I will gladly apply them |
Capitalize X for a and use lowercase z for b: "X x Z z" -> For consistency with the reshape to wide/dcast example, I think it would be better to maintain consistency. (in my version the b_x is consistent between the two, whereas in your version, dcast example has b_x, and melt example has b_X) Use lowercase "sep" in the text ´Reshape a data table from...´ -> my version already had lowercase sep. Previously, in the code, it was "dt". I changed it to "data.table". -> for consistency with the other examples, in which the first argument is usually So overall I think it would be better to keep the version with the changes I proposed in #3374 (comment) If you agree, then there are no new changes to apply. Or am I missing something? |
@tdhock . Back at it again. Would you mind reviewing this? If everything checks out, rename the file. If there are any issues, please highlight them for clarification, and I'll make the adjustments . |
your new version still has some of the same issues I mentioned, and a white line over the authors at the bottom. |
Mara, your version still does not address the issue I mentioned above in this comment: #3374 (comment) |
Hi @tdhock sorry for the delay. Yes is OK this version. I'll add it again, with just a little adjustment only in the text. data_table_cheat_sheet.pptx Feel free to let me know if there's anything else you'd like to change. |
Hi Mara thanks for sharing. Can you please clarify what exactly you changed in your new version? "with just a little adjustment only in the text" #3374 (comment) Your new version still does not fix the issue I mentioned previously "make long tables identical (previous version showed the same data but rows in a different order)" which is fixed in my previous version #3374 (comment) -- can you please use that version if you want to make future modifications? |
Your new version also still has another issue I mentioned, #3374 (comment) "a white line over the authors at the bottom" see below. |
Thanks, @tdhock for the detailed clarification, I really needed that. Could you please double-check if it's good now? I'm totally cool with reviewing it as many times as we need to get it right. |
Hi Mara that is a lot better thanks. A couple of minor suggestions: please remove space after open parenthesis: change "value.name ( creates" to "value.name (creates" |
Hi @tdhock I'm sending that text again with the review you talked about. Take a look and let me know what's next. Thanks for being patient and explaining stuff. |
looks good, what do other people think? please make a minor correction:
put space before equals sign (measure.vars =) |
Hey @tdhock, great to hear from you, Can you just check this out? |
Hi Mara that looks great, can you please submit a PR to https:/rstudio/cheatsheets that updates the cheat sheet? |
great, the rstudio repo has accepted our updated cheatsheet |
or maybe delete the old one? (probably better to avoid confusion) |
Hi @tdhock Toby, I'm aware of the news, that's great! I'm not sure if I need to do anything now, but I'm keeping an eye on it. And our feedback. |
Some time ago, I published a cheat sheet for data.table and I've been expanding on it quite a bit since then: https:/rstudio/cheatsheets/blob/master/datatable.pdf
It's currently hosted on RStudio's homepage (and GitHub) but I was wondering if there's room for it on the data.table homepage as well?
Just to be clear, I don't think it should replace the existing cheat sheet on the data.table homepage. I'm trying to brand this as a "visual cheat sheet" mostly aimed at people who are new or casual data.table users.
The text was updated successfully, but these errors were encountered: