Displaying 4 results from an estimated 4 matches for "equalassign".
2025 Jan 04
2
Fix documentation about <- and = differences
Hello R devs,
this StackOverflow answer says that the R documentation is wrong:
https://stackoverflow.com/a/51564252/1719931
Can we fi it?
Best,
​
[[alternative HTML version deleted]]
2003 Mar 04
1
suggestion for addition to R-lang.texi
Small suggestion for the documentation:
Should the = operator for assignments, described on
http://developer.r-project.org/equalAssign.html, now be included in
the operator table in doc/manual/R-lang.texi? If so, one possibility
could be after lines 1096/7:
@item @code{<-}
@tab Left assignment, binary
@item @code{=}
@tab Left assignment, binary
Also, where is the best place to send suggestions of this nature? I
didn't wa...
2003 Aug 29
3
difference between <- and =
Hi,
I'm somewhat new to R and I'm trying to figure out the difference
between the operators <- and =.
I've noticed that <- cannot be used to bind arguments to values in
function definitions and calls. That is, f(x <- 2) sets x to 2 in the
calling frame and then calls f(2) because the expression x <- 2 returns
a value of 2, whereas f(x = 2) sets x = 2 in the
2019 Aug 24
0
Fwd: Document colon equals `:=` operator ?
...y / value pairs to
function arguments where `=` would trigger a failure.
It can also convenient at the top level because the rhs is NOT
evaluated/copied before entering the function, as it is with `=` and `<-`.
My understanding based on :
* John Chambers 2001 : https://developer.r-project.org/equalAssign.html
* Matt Dowle 2011 :
https://stackoverflow.com/questions/7033106/why-has-data-table-defined-rather-than-overloading
is that `:=` used to be an equivalent to `<-`, along with `_`. At some
point the decision was made to remove `_` and `:=`. BUT, and as I
understand it started as a mistake, t...