[R] modifying a vector

John Fox jfox at mcmail.cis.mcmaster.ca
Mon Jul 1 00:52:30 CEST 2002


Dear Frank et al.,

Actually, I agree that using _ and = for assignment is best avoided --
the former is ugly and the latter invites problems. I was just pointing
out a fact.

John

On Sun, 30 Jun 2002, Frank E Harrell Jr wrote:

> On 30 Jun 2002 09:12:31 -0700
> "A.J. Rossini" <rossini at blindglobe.net> wrote:
>
> > >>>>> "john" == John Fox <jfox at mcmail.cis.mcmaster.ca> writes:
> >
> >     john> The equal sign has already been provided as an alternative assignment
> >     john> operator in R.
> >
> > And I feel the same way about "=" as I do about "_".  Yech.
>
> 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 the developers.  -Frank Harrell
> --
> Frank E Harrell Jr              Prof. of Biostatistics & Statistics
> Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
> U. Virginia School of Medicine  http://hesweb1.med.virginia.edu/biostat
>
>

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