[R] modifying a vector
mschwartz at medanalytics.com
Sun Jun 30 20:22:01 CEST 2002
> -----Original Message-----
> From: owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch] On
> Behalf Of Frank E Harrell Jr
> I'll second that. And we've already seen the big trouble that can be
caused by "="
> (e.g., mistyping sex=='male' as sex='male') that was not envisioned by
> developers. -Frank Harrell
I'll echo and support Dr. Harrell's comments as I have been burned
several times on my own typos paralleling his example.
It has cost me a sufficient amount of time that I have re-configured the
color syntax highlighting in my editor such that the assignment
operators (ie. "<-" and "=") are colored in bold red to differentiate
them from the equality/inequality operators (ie. "==", "<", "<=", etc.)
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