IKTrading icon indicating copy to clipboard operation
IKTrading copied to clipboard

FAAreturns loses date info

Open ojessen opened this issue 10 years ago • 2 comments

I get the error in line 124.

Error in as.Date.numeric(dates) : 'origin' must be supplied

I cloned the repository and added some cats

cat(head(dates)) cat(str(dates)) cat(head(index(returnsData)))

originalOld <- FAAreturns(adPrices, riskFreeName="VFISX") 10165 10193 10226 10256 10284 10316 num [1:205] 10165 10193 10226 10256 10284 ... 16251 16252 16253 16254 16258 16259 Show Traceback Rerun with Debug Error in as.Date.numeric(dates) : 'origin' must be supplied

ojessen avatar Nov 26 '14 13:11 ojessen

Yeah, I saw that error before but I'm having trouble tracking it down. Any help would be appreciated in this regard.

On Wed, Nov 26, 2014 at 8:01 AM, Owe Jessen [email protected] wrote:

I get the error in line 124.

Error in as.Date.numeric(dates) : 'origin' must be supplied

I cloned the repository and added some cats

cat(head(dates)) cat(str(dates)) cat(head(index(returnsData)))

originalOld <- FAAreturns(adPrices, riskFreeName="VFISX") 10165 10193 10226 10256 10284 10316 num [1:205] 10165 10193 10226 10256 10284 ... 16251 16252 16253 16254 16258 16259 Show Traceback Rerun with Debug Error in as.Date.numeric(dates) : 'origin' must be supplied

— Reply to this email directly or view it on GitHub https://github.com/IlyaKipnis/IKTrading/issues/2.

IlyaKipnis avatar Nov 26 '14 14:11 IlyaKipnis

Fixed the bug. Thanks for letting me know about it. Changes have been pushed.

On Wed, Nov 26, 2014 at 9:04 AM, Ilya Kipnis [email protected] wrote:

Yeah, I saw that error before but I'm having trouble tracking it down. Any help would be appreciated in this regard.

On Wed, Nov 26, 2014 at 8:01 AM, Owe Jessen [email protected] wrote:

I get the error in line 124.

Error in as.Date.numeric(dates) : 'origin' must be supplied

I cloned the repository and added some cats

cat(head(dates)) cat(str(dates)) cat(head(index(returnsData)))

originalOld <- FAAreturns(adPrices, riskFreeName="VFISX") 10165 10193 10226 10256 10284 10316 num [1:205] 10165 10193 10226 10256 10284 ... 16251 16252 16253 16254 16258 16259 Show Traceback Rerun with Debug Error in as.Date.numeric(dates) : 'origin' must be supplied

— Reply to this email directly or view it on GitHub https://github.com/IlyaKipnis/IKTrading/issues/2.

IlyaKipnis avatar Nov 26 '14 15:11 IlyaKipnis