首页> 美国政府科技报告 >User's Guide to For2R: A Module of Fortran 95 Output Routines Compatible with the R Statistics Language
【24h】

User's Guide to For2R: A Module of Fortran 95 Output Routines Compatible with the R Statistics Language

机译:For2R用户指南:Fortran 95输出例程的模块与R统计语言兼容

获取原文

摘要

For2R is a collection of Fortran routines for saving complex data structures into a file that can be read in the R statistics environment with a single command.1 For2R provides both the means to transfer data structures significantly more complex than simple tables, and an archive mechanism to store data for future reference. We developed this software because we write and run computationally intensive numerical models in Fortran, C++, and AD Model Builder. We then analyze results with R. We desired to automate data transfer to speed diagnostics during working-group meetings. We thus developed the For2R interface to write an R data object (of type list) to a plain-text file. The master list can contain any number of matrices, values, dataframes, vectors or lists, all of which can be read into R with a single call to the dget function. This allows easy transfer of structured data from compiled models to R. Having the capacity to transfer model data, metadata, and results has sharply reduced the time spent on diagnostics, and at the same time, our diagnostic capabilities have improved tremendously. The simplicity of this interface and the capabilities of R have enabled us to automate graph and table creation for formal reports. Finally, the persistent storage in files makes it easier to treat model results in analyses or meta-analyses devised months-or even years-later. We offer For2R to others in the hope that they will find it useful. The X2R interface is available in three forms: for Fortran as For2R, for C/C++ as C2R, and for AD Model Builder as ADMB2R. This guide specifically describes the For2R interface. The other packages, including documentation, are available from the authors or from CRAN. Because Fortran 95 includes all of Fortran 77, programs written to the earlier standard can be used with For2R, so long as compilation is done with a Fortran 95 compiler. Free compilers for Fortran 95 are now available; for example, the compiler g95 can be downloaded from http://www.g95.org/.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号