|
楼主: 南开2011博
|
8422
25
[问答] R调用Fortran程序 |

|
已卖:17份资源 教授 76%
-
|
回帖推荐Calling Fortran from R
类似Calling C from R
可以由底下网站下载 bar.f
http://users.stat.umn.edu/~charlie/rc/
in Windows command line (MS-DOS prompt)
R CMD SHLIB bar.f
就会得到 bar.o , bar.dll
########in RGui[R Console]
dyn.load("bar.dll")
.Fortran("bar", n=as.integer(5), x=as.double(rnorm(5)))
$n
[1] 5
$x
[1] 0.10698738 0.17456107 0.02935878 0.50642238 0.04781733
| ||
|
|
| ||||||||||||
| ||
| ||
| ||
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


