I do have a df looking like this:
time,v1,v1,v3,v4
1352639505, , ,94,101
1352639565, , ,94,101
1352639505,10,222, ,
1352639565,11,221, ,
First one is UTC Timestamp from 1970-01-01 - so I would use
as.POSIXct(df$time,origin="1970-01-01",tz="UTC")
. But as you can see date is double. NAs and values are skipped. How to merge the same date in the dataframe? First setting as.POSIXct or merging?
Result should look like this:
time,v1,v1,v3,v4
1352639505,10,222,94,101
1352639565,11,221,94,101
Of course it could also be zoo afterwads with real date! Thanks!