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