What Will Be The Output Of The Following R Codep Pre Langrsplus #310
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- as.Date("2012-01-01") > y <- strptime("9 Jan 2011 11:34:21", "%d %b %Y %H:%M:%S") > x-y </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.Date("2012-01-01") > y <- strptime("9 Jan 2011 11:34:21", "%d %b %Y %H:%M:%S") > x-y
Time difference of 356.3095 days
Warning
NULL
Error