What Will Be The Output Of The Following R Codep Pre Langrsplus #308
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > datestring <- c("January 10, 2012 10:40", "December 9, 2011 9:10") > x <- strptime(datestring, "%B %d, %Y %H:%M") > 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?
> datestring <- c("January 10, 2012 10:40", "December 9, 2011 9:10") > x <- strptime(datestring, "%B %d, %Y %H:%M") > x
“2012-01-10 10:40:00 EST” “2011-12-09 09:10:00 EST”
“2012-01-10 10:40:00 IST” “2011-12-09 09:10:00 IST”
“2012-01-10 10:40:00 GMT” “2011-12-09 09:10:00 GMT”
Error