As you all know, R comes from S. But you might not know a lot about S (I don’t). This language used“Why do we use arrow as an assignment operator?” | Colin Fay | September 24, 2018 at https://colinfay.me/r-assignment/
<-as an assignment operator. It’s partly because it was inspired by a language called APL, which also had this sign for assignment.
But why again? APL was designed on a specific keyboard, which had a key for
In the mid-1980s, I worked primarily in APL, with the special character set keyboard.
I was curious about this, because I saw the alternative to <- with an “assign” function.
A more laborious, though sometimes necessary, way to assign variables is to use the assign function.4.2.1. Variable Assignment” | Jared P. Lander | R for Everyone: Advanced Analytics and Graphics
This suggests that an alternative to using the arrow is a more functional style of programming.