Lexical scope and statistical computing

被引:34
作者
Gentleman, R [1 ]
Ihaka, R [1 ]
机构
[1] Univ Auckland, Dept Stat, Auckland 1, New Zealand
关键词
function closure; random number generators;
D O I
10.2307/1390942
中图分类号
O21 [概率论与数理统计]; C8 [统计学];
学科分类号
020208 ; 070103 ; 0714 ;
摘要
Programming environments such as S and Lisp-Stat have languages for performing computations, data storage mechanisms, and a graphical interface. These languages provide an interactive interface to data analysis that is invaluable. To take full advantage of these programming environments, statisticians must understand the differences between them. Ihaka and Gentleman introduced R, a version of S which uses a different scoping regimen. In some ways this makes R behave more like Lisp-Stat. This article discusses the concept of scoping rules and shows how lexical scope can enhance the functionality of a language.
引用
收藏
页码:491 / 508
页数:18
相关论文
共 5 条
  • [1] Abelson Harold, 1985, Structure and Interpretation of Computer Programs
  • [2] Becker RA, 1998, WADSWORTH BROOKSCOLE
  • [3] GENTLEMAN R, 1990, 9013 U WAT DEP STAT
  • [4] Ihaka R., 1996, J COMPUTATIONAL GRAP, V5, P299, DOI [DOI 10.1080/10618600.1996.10474713, 10.1080/10618600.1996.10474713, 10.2307/1390807]
  • [5] Tierney L, 1990, LISP STAT OBJECT ORI