Reading FORTRAN-written double precision variables in R

南楼画角 提交于 2019-12-13 04:31:24

问题


I have a file containing double precisions written from a FORTRAN code in the format of x.yyyyD+zz. When using read.csv in R, R does not seem to recognize those as floating point values. I'm new to R; what's the trick here?


回答1:


Use sed or your favourite text editor to change the Ds to Es, I expect R will happily read the numbers after you do that.



来源:https://stackoverflow.com/questions/29962999/reading-fortran-written-double-precision-variables-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!