r/rstats • • Dec 03 '23

%<>%

Post image

[removed] — view removed post

13 Upvotes

3 comments sorted by

1

u/StephenSRMMartin Dec 04 '23

R's isn't inplace though, just to clarify.

1

u/Trans1000 Dec 04 '23

assignment pipe makes any function behave as if it were

1

u/StephenSRMMartin Dec 04 '23

It's sugar for a pipe and assignment, but I'm clarifying that R doesn't do in place assignment. As in, it's generally immutable.

There are exceptions (data.table).