Skip to content

Real time dataset

2 messages · antujsrv, Gergely Daróczi

#
my dataset looks like :
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