Displaying 2 results from an estimated 2 matches for "timeconv".
Did you mean:
timecode
2009 Jan 04
1
POSIXct and chron issues with tz
...colClasses = c("character", rep("numeric", 10)))
DF <- read.table("C:/R/dataM.txt", header = TRUE, na.strings = -999.99)
tt <- with(DF, chron(paste(mon, day, yr, sep = "/"),
paste(hr, 0, 0, sep = ":")))
timeconv <- as.POSIXct(tt, tz="")
z2 <- zoo(data.matrix(DF), timeconv)
*example of output of data files*
>z[1,]
in. mph Deg DegF DegF2 X. volts Deg.1 mph2 w.m2
(06/01/05 00:00:00) 0 13.6 218.1 36.8 NA 65.1 NA NA 18.2 0.2
> z2[1,]...
2009 Apr 12
2
Convert string to time
One variable contains values (1.30 - one hour and thirty minutes, 1.2
(which is supposed to be 1.20 - one hour and twenty minutes)). I would
like to convert to a minute variable so 1.2 is converted to 80
minutes. How?