R语言介绍

摘自CRAN:

R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues.

此外, R 还受到了 Lisp 的影响, 因此偏向函数式编程. R 有时也被视为一种 Lisp 方言, 因其具有 Lisp 的许多特征:

此处 对 R 与 Lisp 的关系有更多讨论.

这些与 Lisp 相近的特征使得 R 能原生实现各种类似宏/元编程的效果, 如:

Back to top