Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:11:25+00:00 2026-06-13T09:11:25+00:00

I am calling a FORTRAN program in R and analyzing FORTRAN’s output file, which

  • 0

I am calling a FORTRAN program in R and analyzing FORTRAN’s output file, which is a little big (around 50M per iteration). For each iteration, it takes about 50 seconds, in which the read.table command needs 42 seconds. Since I need to repeat this program 100,000 times, I am wondering if there are better ways to speed it up?

For example, is it possible to let FORTRAN save everything into memory and pass it to R?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:11:26+00:00Added an answer on June 13, 2026 at 9:11 am

    Absolutely — write the file as binary files in Fortran, and then just read them via readBin() in R which will be very fast. But make sure you check for endianness, four versus eight byte floating point and that.

    If you want a tested library, look into the various serialization libraries as eg RProtoBuf etc. Not sure how many have Fortran bindings though…

    Edit: No luck with Protocol Buffers and Fortran per the add-ons page. Maybe a science-ish format like hdf5 will be better for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fortran atoms.out file that performs some function. I am calling that
I have some basic questions of calling a Fortran model from GAE. I uploaded
Basically, here's my problem. I'm calling someone else's FORTRAN functions from my C++ code,
We have a large solution in Visual Studio 2010 which comprises a Fortran exe
I've got a proof-of-concept program which is doing some interprocess communication simply by writing
When writing and calling pure subroutines in Fortran 90 using gfortran, how do I
Calling all MQ Gurus, I have a box under my desk which we use
Calling Specific Method from ListActivity which invokes method in one of the Parent(TabActivity) w/o
I am calling a fortran subroutine from C#. One of the parameter I have
I'm interested in calling fortran codes in a Mathematica session. I learn that Mathlink

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.