[R] Real time dataset

antujsrv antujsrv at gmail.com
Tue Jan 11 06:14:09 CET 2011


my dataset looks like :

>df

   VIX   GLD   FAS
1    2     4      5
2    8     9      10
3    56   9       98 .. continued

the dataset has n observations which is fixed and i need to create a
function :

test <- function(variable name, value) -- this function has to insert the
value under the respective variable and if the column length exceeds "n"
then automatically the first value from the top of the variable should get
deleted, the way we have in stacking-first in first out.

Any help writing this function would be highly appreciated
Thanks                      
-- 
View this message in context: http://r.789695.n4.nabble.com/Real-time-dataset-tp3208473p3208473.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list