Conversation
added anonymous function. added an example of how to return multiple values replaced range() with span() similar to Python example. edited/added some text.
Thanks for this, @likit. Are you on the r-discuss mailing list? If not, please sign up here. However, this is a little tricky to merge at the moment because these materials are being actively developed. We recently adopted a plan for translating the novice Python lessons to R (see this blog post). @gavinsimpson is currently making a round of changes (#452), which will then be followed by two others. So I think the two main options would be:
Thoughts on when to merge these changes and/or whether we should discuss anonymous functions in the novice lessons? @gavinsimpson or any other SWC R instructors? |
Thanks @likit. Changing to The consensus there was to drop all the formatting of strings/concatenation and just use comment for a note of what the calculation was and simply include the statement to be evaluated. I hadn't done this yet as this was only recently discussed here and I wanted time for people to comment. @jdblischak has just closed this (#459) so I intend to implement the change in a different way than you've done here. IIRC I've also rewritten the section where I'll take a look at the other changes you made - trade off between adding R-related concepts (e.g. your section on anonymous functions) vs length of lesson. For example, I've just added a longish section on writing (FYI I'm just giving it one last read through before I push my changes to |
Thanks for singing up for the r-discuss mailing list, @likit. Since you are now familiar with this lesson material, would you be able to give @gavinsimpson's PR a thorough review? @gavinsimpson, I'll leave it to you to close this PR and to coordinate with @likit on the incorporation of any of these changes into your repo. |
@jdblischak I don't have permissions to close PRs on SWC. I will go back through @likit's PR here and merge in where needed. |
@gavinsimpson @jdblischak Thanks for comments. Sorry, I have been very busy these days because I'm about to graduate in August. I'll try to follow as much as possible but I won't be able to contribute much until after July. |
No worries, @likit. We appreciate your suggestions, and we'll do our best to incorporate them. Best of luck as you prepare to graduate! |
added anonymous function.
added an example of how to return multiple values
replaced range() with span() according to Python tutorial.
edited/added some text.