
高级 R 语言编程
Advanced R
Hadley Wickham · 初版 2014 年
9人推荐
13位读者提及
16次提及
为什么值得读
- 提前扫清语言怪癖,直接讲透内部运行机制
- 通俗易懂地剖析数据结构与表达式底层求值逻辑
- 挖掘其类似 Lisp 的语言设计精髓与表现力
Advanced R展示了用于攻克各类R语言编程问题的实用工具和技术,助您避开失误与死胡同。凭借十余年的R语言编程经验,作者展现了蕴藏于R核心之中的优雅、优美与灵活性。本书旨在培养编写优质代码所需的核心技能,以应对多种应用场景。您将学到:R的基础知识,包括标准数据类型和函数;作为解决广泛问题实用框架的函数式编程;元编程的优劣之处
Hacker News 上怎么说
正在加载完整评论……
我完全同意这里说的所有内容,包括对 Matloff 那本书的夸赞;那绝对是任何认真的 R 用户应该拿起来读的第一本书。但现在 Matloff 不再是一枝独秀了:Hadley Wickham 的《Advanced R》如今也是 R 程序员的必读书目了。http://www.amazon.com/Advanced-Chapman-Hall-CRC-Series/dp/14...
I agree with everything here, including the praise for Matloff's book; it should be the very first book any serious R user picks up. But Matloff is no longer alone: Hadley Wickham's Advanced R is now also a must-read for R programmers. http://www.amazon.com/Advanced-Chapman-Hall-CRC-Series/dp/14...
Hadley Wickham 的《Advanced R》中的“元编程(Metaprogramming)”一章是个不错的入门材料,尽管它偏重于作者自己的库和他自己那套(聪明但主观性强/opinionated)的方法,而不是核心语言原语:https://adv-r.hadley.nz/metaprogramming.html…
The "Metaprogramming" section of Advanced R by Hadley Wickham is a good introduction, although it emphasizes the author's own library and their own (intelligent but opinionated) approach, rather than the core language primitives: https://adv-r.hadley.nz/metaprogramming.html…
有人手头有学习 R 语言的最佳网站清单吗?我手头只有两个,而且其中一个还是给进阶用户看的:http://adv-r.had.co.nz - Hadley Wickham 的《Advanced R》https://learnxinyminutes.com/docs/r/ 我的链接都存在 Github 上:https://github.com/melling/ComputerLanguages/blob/master/r.o...
Does anyone have a short list of the best sites to learn R? I only have two on my list, and one is for advanced users: http://adv-r.had.co.nz - Advanced R by Hadley Wickham https://learnxinyminutes.com/docs/r/ I keep my links on Github: https://github.com/melling/ComputerLanguages/blob/master/r.o...
……R 的 lisp 味在实际应用中的又一个例子 [0]。此外,想想在 R 里遍历 S 表达式有多简单。R 里的表达式只能是四种东西之一:原子值、名称、调用或 pairlist。Wickham 的《Advanced R》对此有极好的入门介绍 [1]。我认为 Wickham 在 tidyverse 上令人惊艳的成果(它彻底改变了你在 R 里的编码方式)仅仅是重新发掘 R 内在 lisp 能力的开始,可以说是某种“R:……
…another example of R's lispiness in action [0]. Also, consider how easy it is to walk R's S-exp. Expressions in R can only be one of four things: an atomic value, a name, a call or a pairlist. Wickham's Advanced R has a great intro on this [1]. I believe Wickham's amazing work with tidyverse (which really changes the way you code in R) is just the beginning of a rediscovery of R's inner lisp power, a kind of "R:…
如果你已经掌握了另一门动态语言并且想学 R,我建议直接跳过所有偏数据分析的 R 入门教程,直接从 Hadley Wickham 的《Advanced R》开始看。它会在你被搞晕之前,把你会遇到的所有奇葩特性一股脑讲清楚。之后你再去读数据分析教程,就可以专注于内容本身,而不会被 R 自身的诡异机制卡住了。
If you already know another dynamic language and want to understand R, I would recommend skipping all the intros to R based around data analysis and start with Advanced R by Hadley Wickham. It will explain all the weirdness you'll encounter right up front before it confuses you. Then you can read the data analysis tutorials and focus on the content rather than the R weirdness.
……(初级和高级)。就算它是对的,展示这些晦涩冷门的例子有什么意义,除非这个教程是专门写给对语言设计感兴趣的人来学 R 的?同样,Wickham 的《Advanced R》一书在这一块处理得很好(事实上,《Advanced R》可能是有编程底子的人能读到的最好的书了——读起来超级顺畅),就在他前面关于“数据结构”的那一章:http://adv-r.had.co.nz/Data-structures.html……
…(beginner and advanced). Even if it's correct, what's the point in showing esoteric examples unless this tutorial is meant to teach R to someone interested in the design of languages? Again, Wickham's Advanced R book handles this topic well (in fact, Advanced R is probably the best book you can read if you already know how to program -- it is incredibly accessible) in his early chapter on Data structures: http://adv-r.had.co.nz/Data-structures.html…