[R] external variable by inside-function routines modifications

2009-10-08 Thread devol
Dear all, could you please advice whether it is possible somehow to modify an external (from the point of some function view) variable by some function-internal operators. For example > var=1 > foo<-function(var){var=var+1} > foo(var) > var [1] 1 but the goal is to get the var equal to 2 in t

Re: [R] xts dates spacings

2009-10-02 Thread devol
180.49100 2009-09-25 10:39:00 -98.86423 2009-09-25 10:40:00 -158.06193 2009-09-25 10:41:00 -132.81620 > And it look in my R in the following way http://www.nabble.com/file/p25725969/spacespicture.png The question is how to remove the space btw the dates. Thanks! devol wrote: > >

[R] xts dates spacings

2009-10-02 Thread devol
Hello! Please help - can't find any options how to remove very big spaces between two dates containing intraday prices plotted by plot.xts. It looks like the following: on the left side of the plot window is the first bunch of points, the same is for the right hand side and a long line connecti

[R] xts and data.frame question

2009-09-15 Thread devol
Hello there! does any one know how to convert the following type of data > z DATE TIME ISIN PRICE VOL ID_DEAL RANK 1881 2009-09-11 10:30:59 RTS-9.09 117445 10 982008011 1882 2009-09-11 10:31:59 RTS-9.09 117450 1 982021446 1883 2009-09-11 10:32:59 RTS-9.09 117285