For Programmers: Free Programming Magazines  


Home > Archive > Fortran > October 2006 > Free software: Fortran (or C or ADMB) data to R









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Free software: Fortran (or C or ADMB) data to R
Mike Prager

2006-10-31, 7:59 am

I am pleased to announce the availability of free software that
may be of interest to users of Fortran and R. This is available
from http://cran.r-project.org . Look under Software / Other
for X2R.

X2R: R-compatible output routines for AD Model Builder, C, C++,
and Fortran

Summary -- X2R solves the following problem: Given a numerical
model written in a compiled language, how can its structured
output easily be transferred to R for postprocessing (graphing,
further analysis)?

Software description -- X2R is composed of three similar sets of
software: C2R, ADMB2R, and For2R. Each contains output routines
to simplify transfer of complicated data structures from models
written in a compiled language to R or S-PLUS.*

When X2R routines are called, the user's data is written as a
structured ASCII file. That file can be read by R or S-PLUS
with a single dget() function call to become a data object of
type list. The list may contain components such as data frames,
matrices, and other lists. Thus not only numeric data, but also
data structure, variable names, dimension names, and other
metadata can be transferred.

These are not R or S-PLUS functions; rather they are subroutine
libraries to be used and compiled with programmers' own modeling
codes. Source code, examples, and users' guides are supplied.

Languages supported are Fortran 95 (with For2R), C and C++ (with
C2R) and AD Model Builder* (with ADMB2R). As Fortran 77 is a
subset of Fortran 95, For2R may be called from Fortran 77, as
long as a Fortran 95 compiler is used.

Warranty and license -- X2R has been tested and used by the
authors. However, any software may contain bugs. These works are
classified by NOAA as experimental products, and the user is
solely responsible for ascertaining suitability and correct
operation. THE SOFTWARE IS OFFERED WITH NO WARRANTY OF ANY KIND.

X2R was written while the authors were employed by or associated
with the U.S. National Oceanic and Atmospheric Administration
(NOAA). It may be freely redistributed as long as credit is
given to the original authors.

Authors -- Michael H. Prager (corresponding author), Jennifer L.
Martin, and Andi Stephens

* Product disclaimers

- AD Model Builder and S-PLUS are commercial products whose use
requires licensing from their vendors (Otter Research and
Insightful Corporation, respectively).
- Mention of commercial or noncommercial products does not
imply endorsement by NOAA, U.S. Department of Commerce, or any
other government agency. No such endorsement is made or
implied.

--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com