←back to thread

Big Book of R

(www.bigbookofr.com)
288 points sebg | 2 comments | | HN request time: 0.485s | source
Show context
uptownfunk ◴[] No.43648229[source]
I will say, now after 15 years messing with this. With LLM I just do it all in Python. But, I still miss the elegance and simplicity of R for data manipulation and analysis. Especially the dplyr semantics. They really nailed it. I think they got crushed by the namespace / import system. There’s something about R that makes you so fluid and intuitive. But the engineering, the efficiency, I get with Python now, I can’t go back.
replies(2): >>43650701 #>>43653052 #
1. tylermw ◴[] No.43653052[source]
Funny you mention namespacing: R 4.5.0 was just released today with the new `use()` function, which allows you import just what you need instead of clobbering your global namespace, equivalent to python’s `from x import y` syntax.

e.g. avoid dplyr overriding base::filter

use(“dplyr”, c(“mutate”, “summarize”))

replies(1): >>43658211 #
2. kgwgk ◴[] No.43658211[source]
The release notes say:

    (Actually already available since R 4.4.0.)