How to read date time from 2 columns with zoo?

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

I have a csv file contains minutes exchange rate

,,

Trying to do below but not working for me. How to read date time from 2 columns?

rate 

above code generated error : index has 5 bad entries at data rows: 1 2 3 4 5

回答1:

You need to specify colClasses to keep the leading zeros on the third column, and to remove the first column (since you can't have both numbers and characters in a zoo object). Note that the default action if multiple index columns are specified is to paste them together with a space between them.

Lines ,,

MODIFIED: Simplified.



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