An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121120/ffaa6913/attachment.pl>
Updating Tom Short's R Reference Card, contacting him?
3 messages · Matthew Baggott, Jeff Newmiller, Peter Dalgaard
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.
On Nov 20, 2012, at 19:45 , Jeff Newmiller wrote:
a) I would advocate marking "<<-" as "not recommended". Anyone who needs this reference probably should avoid this operator.
Could we say "not for beginners"? I mean, it has legitimate uses. If we say "not recommended", people will remember it as non-beginners and avoid it, even when it is exactly the right thing to do. Also, the text could be "left assignment in outer lexical scope" to avoid the somewhat vacuous reference to "the environments". Also on pkg::foo(), I'd say "not usually required" or "only needed if two packages contain the same function".
Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com