What Will Be The Output Of The Following R Codep Pre Langrsplus #225
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- c(1, 2, NaN, NA, 4) > is.na(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 - Reading Datasets - Quiz No.1.
What will be the output of the following R code?
> x <- c(1, 2, NaN, NA, 4) > is.na(x)
FALSE FALSE TRUE TRUE FALSE
FALSE TRUE TRUE TRUE FALSE
TRUE FALSE TRUE TRUE FALSE
TRUE FALSE TRUE FALSE FALSE