
Hi Raghu,

 

 

 

Indeed this is not a finance question and should be posted on the general mailing list... you'lle have more chances to get meaningful answers. 

 

I am not an expert of the inner working of R, but using a 32bits R on a 64 bits system seems already a very strange idea to me - have you simply tried to use a 64bits R version instead? & if so does the issue reproduce? I guess you'er talking about windows 32/64bits systems. 

 

May be R is simply too nice with its users, allowing them to run a 32bits version on a 64bits system... but it then has its limits

 

 

HTH,

Julien


 
> Date: Thu, 15 Jul 2010 08:59:37 +0100
> From: r.raghuraman@gmail.com
> To: r-sig-finance@stat.math.ethz.ch
> Subject: [R-SIG-Finance] Quirky Behaviour of R?
> 
> Hello
> 
> I tried running the following code and it works fine most of the times but
> there are instances (no change in parameters or files or anything) when it
> cribs. I tried analysing but could not find the fault and finally the only
> solution that works is closing the instance of R and restarting! Any ideas
> pls?
> 
> d <- expr.frame(x, list(MAf=quote(SMA(Last, 50)), MAs=quote(SMA(Last,
> 200))))
> Error in data.frame(c(1000, 1001.53, 987.17, 976.28, 960.32, 951.93,
> 949.29, :
> arguments imply differing number of rows: 3637, 3588, 3438
> 
> And the above is the error message that I get. This is really strange
> because the same piece of code works brilliantly fine 99% of the time but
> that is worrisome. Is it because I have a 64-bit computer and the R version
> is a 32-bit system? I am not sure this is a finance related query but
> because it comes under the purview of 'tradesys' I thought I would post it
> here. Advance apologies if anyone is offended for my posting on this forum
> instead of a general R-forum. I am also posting the str(d) below when it
> runs successfully.
> 
> str(d)
> List of 5
> $ Open : num [1:3637] 1000 1002 987 976 960 ...
> $ Last : num [1:3637] 1000 989 978 964 953 ...
> $ MAf : num [1:3637] NA NA NA NA NA NA NA NA NA NA ...
> $ MAs : num [1:3637] NA NA NA NA NA NA NA NA NA NA ...
> $ Cross: num [1:3637] 0 NA NA NA NA NA NA NA NA NA ...
> - attr(*, "class")= chr "expr.frame"
> - attr(*, "row.names")= chr [1:3637] "1" "2" "3" "4" ...
> - attr(*, "exprlist")=List of 3
> ..$ MAf : language SMA(Last, 50)
> ..$ MAs : language SMA(Last, 200)
> 
> 
> Thanks in advance.
> 
> -- 
> 'Raghu'
> 
> [[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Finance@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.
 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.

	[[alternative HTML version deleted]]

