|
|
|
|
|
by ltjohnson
5635 days ago
|
|
I've added some examples to my above comment. My example is perhaps a little closer to 'median(x <- 10)' than you were asking for, but I think it illustrates the point that using '=' will not always have the desired result in places where '<-' would. |
|
This applies in all languages:
vec1 = rnorm(100)
system.time(vec1)
mean(vec1)
And, I can get my colleagues to fix it when I screw up, even though they are not R-heads.