> x <- 1:5
> y <- 6:10
> plot(x=x, y=y)
> plot(y, x)
> plot(x=y, y=x)
> x
[1] 1 2 3 4 5
> y
[1]  6  7  8  9 10
> plot(x<-y, y<-x)
> x
[1]  6  7  8  9 10
> y
[1]  6  7  8  9 10
>

>From this example, you see that "=" and "<-" have different
behaviors inside argument lists.  Check the archives for
other examples and discussion.

RSiteSearch('What to use for assignment, " = " or " <- "?')

brings up several threads including this post from Bill Venables

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/126700.html


Rich
_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

Reply via email to