Re:Starting data analysis with R: Things I wish I'd been told
by hadley on Sunday November 23, 2014 @08:10PM
(#8650584)
I think R is a well-designed language. It definitely has its quirks (what language doesn't?), but by-and-large they are problems with the standard library, not the language. This is admittedly a subtle distinction, but it's much easier to fix problems with the standard library than it is with the language.
Three aspects of the language that make R particularly well suited for statistical programming are:
1) Missing values built in at a fundamental level.
2) Metaprogramming capabilities. The best way to solve many categories of data analysis problems is to design a domain specific language which allows you to easily combine independent pieces. R's incredible flexibility is great for this.
3) Fundamentally vectorised and functional. This allows you to elegantly express many common data analysis tasks.
Re:Starting data analysis with R: Things I wish I'd been told
by jph00 on Sunday November 23, 2014 @10:49PM
(#8650978)
Could you describe what facilities of R help with metaprogramming and make it good for designing DSLs?
Re:Starting data analysis with R: Things I wish I'd been told
by hadley on Monday November 24, 2014 @08:50AM
(#8652323)
http://adv-r.had.co.nz/dsl.html and the two prior chapters
I'm hoping Julia might become a good alternative to R and Python, but I can't see it catching on in the statistical community anytime soon given how many people are still using relics like SAS and Stata. The raw fact is that statisticians (considered as a group) just aren't very good at programming (and many older statisticians can't program at all), which means that a well-designed programming language may not necessarily be easy to use for a member of the statistical community used to point-and-click statistics suites.