[R-SIG-Finance] day/month/year functions?
Mark Knecht
markknecht at gmail.com
Tue Jul 23 02:15:57 CEST 2013
Hi,
I've got a piece of old code I'm trying to resurrect which contains
this function to convert R dates to TradeStation dates:
function (MyDate) {
ThisDay = day(MyDate)
ThisMonth = month(MyDate)
ThisYear = year(MyDate)
TSDate = (ThisYear - 1900)*10000 + ThisMonth*100 + ThisDay
return(TSDate)
}
However I don't have the day/month/year functions and so far haven't
found them searching using ??day, etc.
Does anyone recognize these as coming from a package that for some
reason might not be showing up using ??-type searching?
Thanks,
Mark
More information about the R-SIG-Finance
mailing list