I have a data.frame which is initially empty and then shall be filled:
df <- data.frame(datetime=as.POSIXct(character()), t=factor(), val=numeric())
Until now I could not found a solution to append rows continously to the end.
I am looking for a solution similar to this, but working of course:
df[nrow(df) + 1,] = c(as.POSIXct('2002-02-12 22:00:00',format='%Y-%m-%d %H:%M:%S', tz='UTC'),"test", 34.5)
How can this be achieved?
Thanks :-)