Matthew Baggott
2012-Nov-20  18:06 UTC
[R] Updating Tom Short's R Reference Card, contacting him?
I made an update/reboot of Tom Short's classic and public domain "R Reference Card". His is from late 2004 and I've found myself giving it to new R users with additional notes about packages. If anyone knows how to reach Tom, that would be great. I am titling this reboot "Short R Reference", in a play on his name, but I would like to know he wants his name (and/or email) on this version. Also if anyone feels like providing corrections or comments, the release candidate is here. To view it in full resolution, you may need to download it: https://docs.google.com/open?id=0B8NgE2q8ITzTQnhPTFVjVXlOaHM regards, m@ [[alternative HTML version deleted]]
Jeff Newmiller
2012-Nov-20  18:45 UTC
[R] Updating Tom Short's R Reference Card, contacting him?
Some issues:
a) I would advocate marking "<<-" as "not
recommended". Anyone who needs this reference probably should avoid this
operator.
b) The $ operator does an approximate match with the name. [["name"]]
does an exact match.
c) Matrices are not data frames. Their indexing by the "[" operator is
very similar, but you cannot use list operators $ and [[ on matrices (at least
not to get the results you are suggesting).
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live
Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Matthew Baggott <matthew.baggott at gmail.com> wrote:
>I made an update/reboot of Tom Short's classic and public domain "R
>Reference Card".  His is from late 2004 and I've found myself
giving it
>to
>new R users with additional notes about packages.
>
>If anyone knows how to reach Tom, that would be great.  I am titling
>this
>reboot "Short R Reference", in a play on his name, but I would
like to
>know
>he wants his name (and/or email) on this version.
>
>Also if anyone feels like providing corrections or comments, the
>release
>candidate is here.  To view it in full resolution, you may need to
>download
>it:
>
>https://docs.google.com/open?id=0B8NgE2q8ITzTQnhPTFVjVXlOaHM
>
> regards,
>m@
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
Matthew Baggott
2012-Nov-21  22:20 UTC
[R] Updating Tom Short's R Reference Card, contacting him?
I am uncertain about how to acknowledge the fact that $ can do partial matching in the space of about 30 characters. One option is this: x[["name"]] column named "name" x$name same as above (almost always) Is that better or worse than ignoring this issue, or is there an even better phrasing? As per the other suggestions, I fixed the matrices indexing info, pkg::foo() now has "not usually required"; and <<- now is explained as "Left assignment in outer lexical scope; not for beginners" Plus, I've been able to get in touch with Tom Short. :-) Thanks to Jeff Newmiller,Dennis Murphy, and Peter Dalgaard for these helpful suggestions and corrections! regards, m@