[R] the underscore ("_") in variable name

Mark Myatt mark at myatt.demon.co.uk
Wed Oct 4 11:12:59 CEST 2000

Jim Lemon <bitwrit at ozemail.com.au> writes:
>Just a vote for "<-".  Once I became familiar with the convention using
>APL, I really began to appreciate the value of distinguishing assignment
>from equality.  Also, the "<-" is clear and fairly unambiguous.  Using
>NEdit, it is trivial to create a macro (Alt= for example) that will type
>the assignment symbol for you.  If you use the left and right assignment
>operators often, perhaps Ctrl= and Alt= would be a simple way to get
>these combinations.

Just to add my tuppence ... when I first started using R I though it was
a bit silly to have a two character assignment operator but later I saw
the utility of having separate assignment (<-), equality (==), and
parameter passing (=) symbols. I also find -> useful during function
development. Also, PASCAL and MODULA use := for assignment. You get used
to it. IMO, better the <- than the _ operator. As I say, just my


Mark Myatt

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list