What Will Be The Output Of The Following R Codep Pre Langrsplus #311
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- as.Date("2012-03-01") > y <- as.Date("2012-02-28") > 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-03-01") > y <- as.Date("2012-02-28") > x-y
Time difference of 3 days
Time difference of 2 days
Time difference of 1 days
Time difference of 5 days