What Will Be The Output Of The Following R Codep Pre Langrsplus #312
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- as.POSIXct("2012-10-25 01:00:00") > y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT") > y-x </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 R - Data Storage, Formats, Objects and Operations - Vectorized Operations - Quiz No.2.
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
Time difference of 1 hour
Time difference of 1 min
Time difference of 1 sec
Time difference of 5 sec