What will be the output of the following R code?
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-x
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-xA. Time difference of 1 hour
B. Time difference of 1 min
C. Time difference of 1 sec
D. Time difference of 5 sec
Answer: Option A

Join The Discussion