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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to