|
|
|
|
|
by canjobear
1810 days ago
|
|
It's true that if you write code that is pure and error-free then you will never bump up against R's strangeness. But try out this bit of base R: > hello = function(cats, dogs) { return(cats) } > hello(100, honk) # where honk has never been defined > hello(100, print("hello!")) > hello(100) |
|
---
[1] well, not "natural", but aligned with how math stuff is usually taught/done. in most cases, when asked to evaluate `f(x+1)`, you first do `x+1` and then take `f(_)` of that.