R 语言是主要用于统计分析、绘图的语言和操作环境。 R 本来是由来自新西兰奥克兰大学的 Ross Ihaka 和 Robert Gentleman 开发。 (也因此称为R)现在由“R开发核心团队”负责开发。 R 是基于S语言的一个 GNU 项目,所以也可以当作S语言的一种实现,通常用S语言编写的代码都可以不作修改的在R环境下运行。 R 的语法是来自 Scheme。
目前来自 Google 的博客泄漏,R语言对64位整数的支持。Romain Francois 刚刚上传了 int64 包到 CRAN 作为更新版本的 Rcpp 和 RProtobuf 包。这对 Google 来说非常重要,因为工程师们经常需要在 R 语言中处理超大的数据量,而 64 位对他们来说是必须的。
一旦支持 64 位整数,你将可以:
- Perform arithmetic operations between 64-bit operands or between int64 objects and integer or numeric types in R.
- Read and write CSV files including 64-bit values by specifying int64 as a colClasses argument to read.csv and write.csv (with int64 version 1.1).
- Load and save 64-bit types with the built-in serialization methods of R.
- Compute summary statistics of int64 vectors, such as max, min, range, sum, and the other standard R functions in the Summary Group Generic.
尽管 Romain 新的 int64 包更适合来做 64 位处理,但想要更高精度的计算,在 CRAN 上还有强大的 GNU Multiple Precision Arithmetic Library 和 R GMP package 可供选择。