I am trying to append rows to a dataframe inside a user defined function. I have done this before in a for loop without difficulty, as follows:
t1 <- data