首页    期刊浏览 2024年09月16日 星期一
登录注册

文章基本信息

  • 标题:Converting Packages to S4
  • 本地全文:下载
  • 作者:Douglas Bates
  • 期刊名称:R News
  • 印刷版ISSN:1609-3631
  • 出版年度:2003
  • 卷号:3
  • 期号:1
  • 页码:6
  • 出版社:The R Foundation for Statistical Computing
  • 摘要:R now has two systems of classes and methods, known informally as the ‘S3’ and ‘S4’ systems. Both systems are based on the assignment of a class to an object and the use of generic functions that invoke different methods according to the class of their arguments. Classes organize the representation of information and methods organize the actions that are applied to these representations. ‘S3’ classes and methods for the S language were introduced in Chambers and Hastie (1992), (see also Venables and Ripley, 2000, ch. 4) and have been implemented in R from its earliest public versions. Because many widely-used R functions, such as print, plot and summary, are S3 generics, anyone using R inevitably (although perhaps unknowingly) uses the S3 system of classes and methods.
国家哲学社会科学文献中心版权所有