Which Of The Following Statement Would Print 822008221 #155
Which of the following statement would print “0” “1” “2” “3” “4” “5” “6” for the following R code?</p> <pre><code class="language-rsplus"> > x <- 0:6 </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.
Which of the following statement would print “0” “1” “2” “3” “4” “5” “6” for the following R code?
> x <- 0:6
as.character(x)
as.logical(x)
as.numeric(x)
as.num(y)