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 D
s to E
s, I expect R
will happily read the numbers after you do that.