What Will Be The Correct R Code For The Following Outputp Pre #226
What will be the Correct R code for the following output?</p> <pre><code class="language-rsplus"> foo bar 1 1 TRUE 2 2 TRUE 3 3 FALSE 4 4 FALSE </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.2.
What will be the Correct R code for the following output?
foo bar 1 1 TRUE 2 2 TRUE 3 3 FALSE 4 4 FALSE
> x <- data.frame(foo = 1:4, bar = c(F, T, F, F)) > x
> x <- data.frame(foo = 1:6, bar = c(F, T, F, F)) > x
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > x
> x <- data.frame(foo = 14:1, bar = c(F, T, F, F)) > x