rbind/timestamp problem
Thank you, now it works. I would never have never found the source of the problem. I am trying to build a data frame with results from a sensitivity analysis for a model. I use rbind because the number of rows is unkown and i use the timestamp as a hint for the students that they do not analyse data from last week :-). Anyway, thank you very much, it helped a lot. Greetings, Georg
On 10.12.2013 15:40, jim holtman wrote:
try this:
sensitivity=rbind(sensitivity,data.frame(mtype=2,cdate=as.POSIXct(Sys.time(), origin="1970-01-01"))) sensitivity
mtype cdate 1 1 2013-12-10 09:35:53 2 2 2013-12-10 09:37:02 The 'c' function is coercing to numeric. If you want to 'rbind' rows to a dataframe, then make sure you use a dataframe. Jim Holtman Data Munger Guru
Georg Hoermann, Department of Hydrology and Water Resources Management Kiel University, Germany +49/431/2190916, mo: +49/176/64335754, icq:348340729, skype: ghoermann