search for: read_libray

Displaying 1 result from an estimated 1 matches for "read_libray".

2013 Apr 19
1
How to read a direct access file by connecting fortran with R ?
...n read(10,rec=row) img1 img=img1 else if(p==2) then read(10,rec=row) img2 img=img2 else read(10,rec=row) img3 img=img3 endif close(10) End subroutine read_binary ************************************ II) R CMD SHLIB read_binary.f90 III) dyn.load("read_libray.so") IV) Then in R, I tried many variant of the following function but I wasn't able to store the line number row into the vector img ************************************ img<-c(n_col) Read_binary<-function(n_samples,line,type) { as.integer(n_samples), as.intger(line), as....