What Will Be The Output Of The Following R Codep Pre Langrsplus #158
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- c("a", "b", "c") > as.logical(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 Nuts and Bolts and Getting Data In and Out - Data Types - Quiz No.3.
What will be the output of the following R code?
> x <- c("a", "b", "c") > as.logical(x)
a b c
NA NA NA
0 1 2
6 8 9