Aquatic Commons

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

Prager, Michael H. and Martin, Jennifer L. and Stephens, Andi (2006) User’s Guide to For2R: A Module of Fortran 95 Output Routines Compatible with the R Statistics Language. Miami, FL, NOAA/National Marine Fisheries Service/Southeast Fisheries Science Center, (NOAA Technical Memorandum NMFS–SEFSC, 548)

[img]
Preview
PDF - Requires a PDF viewer such as GSview, Xpdf or Adobe Acrobat Reader
Download (164Kb) | Preview

    Abstract

    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 analyse 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. (PDF contains 31 pages)

    Item Type: Monograph or Serial issue
    Title: User’s Guide to For2R: A Module of Fortran 95 Output Routines Compatible with the R Statistics Language
    Personal Creator/Author:
    CreatorsEmail
    Prager, Michael H.Mike.Prager@noaa.gov
    Martin, Jennifer L.
    Stephens, Andi
    Series Name: NOAA Technical Memorandum NMFS–SEFSC
    Number: 548
    Date: 2006
    Publisher: NOAA/National Marine Fisheries Service/Southeast Fisheries Science Center
    Place of Publication: Miami, FL
    Issuing Agency: United States National Marine Fisheries Service
    Additional Information: Software Version 1.03
    Subjects: Management
    Education
    Item ID: 2110
    Depositing User: Patti M. Marraro
    Date Deposited: 19 May 2009 21:12
    Last Modified: 29 Sep 2011 21:39
    URI: http://aquaticcommons.org/id/eprint/2110

    Actions (login required)

    View Item

    Document Downloads

    More statistics for this item...