r - How to coerce a string-like date to Date object -
let have object this:
> dput(maturitydate) "3/6/2018" that text string represents date in m/d/yyyy format.
the following command returns:
> as.date(maturitydate) [1] "0003-06-20" which not output wish.
any idea how may coerce date object in usual format dealt xts?
as.date("3/6/2018",format="%m/%d/%y")
Comments
Post a Comment