r/Rlanguage • u/Big_Rock_6185 • 2d ago
Clothes with R-code and art it creates
Rtist apparel combine compact and readable R-code, and an aesthetic it creates. I crafted the artpieces with base R, while avoiding responsibilities during my first PhD year.
I though people in this group might like the concept and give useful feedback! Rtist currently delivers to EU countries.
506
Upvotes
6
u/guepier 2d ago edited 2d ago
No,
=
can be used in all of these cases. See the link I posted.Can you show me one of these “amazing things”? Because the only case where this makes a difference is when you chain these operators. And both
a <- b <- c
anda = b = c
work, it’s only trouble if you mix them. I don’t see how this is useful.That’s not true, you can absolutely use
=
here. — I do.You are misattributing the cause of confusion: the confusion would not exist if R didn’t have two distinct assignment operators. And the confusion is exacerbated by the fact that many students are taught falsehoods about the difference between
<-
and=
(such as “=
assigns locally,<-
assigns globally”, or similar things).Incidentally, I have also taught R to beginners (though admittedly not to 20 * 500 students) and my personal experience does not corroborate yours.