I have two text files:
1- first file
wd <- structure(list(Year = c(2006L, 2006L, 2006L), day = c(361L, 361L,
360L), hour = c(14L, 8L, 8L), mint = c(30L, 0L, 30L), valu1 = c(0.5,
0.3, 0.4)), .Names = c("Year", "day", "hour", "mint", "valu1"
), class = "data.frame", row.names = c(NA, -3L))
transform(wd,
Date = as.POSIXct(paste(Year, day, hour, mint), format = "%Y %j %H %M", tz = "UTC")
)
Year day hour mint valu1 Date
1 2006 361 14 30 0.5 2006-12-27 14:30:00
2 2006 361 8 0 0.3 2006-12-27 08:00:00
3 2006 360 8 30 0.4 2006-12-26 08:30:00
2- second file
and here is the second file: wg= [1] "2006/12/27 14:23:59" "2006/12/27 16:47:59" "2006/12/27 19:12:00"