Displaying 1 result from an estimated 1 matches for "fortan_kmean".
Did you mean:
fortan_kmeans
2005 Aug 03
7
call fortran in R
...ello,
I used a mac G5, R.2.1.1, and G77 3.4.4 and I would like to use and
call a fortran subroutine.
The trouble is that it seems I am not able to correctly load the
compiled code.
Here is what I have done:
In the terminal this how I compiled my fortran code:
R CMD SHLIB ~/Desktop/Fortan_kmeans/kmeans3.f
There is the wrapper I have paste inside de kmeans3.f file:
c THIS IS THE WRAPPER
subroutine wrapper(n, p, nran, mat, ishort, w, z,
+ ntran, istand, k1, k2, iassign, iseed)
integer n,p,kmax
real*8 mat(n,p),sx(kmax,p),sx...