Skip to content

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:

            
#
On Nov 20, 2012, at 19:45 , Jeff Newmiller wrote:

            
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".