All the options correct the only way to exit a repeat

This preview shows page 1 - 3 out of 3 pages.

Control structures like if, while, and for are used to control the flow of an R program.Which of the following while loops will print numbers from 1 to 4?
What is the class of the object defined by the expression x<- c(4,"a",TRUE) in R?CharacterWhich of the following statements is correct?
Assume that you have a vector x <- c(3,5,1,10,12,6) and you wish to set all elements of this vector that are smaller than 6 to be equal to 0, what R code accomplishes this?
What would be the output of the subsequent code?
What would be the result of following code?
What would be the result of following code?x <- c("x", "y", "z") as.logical(x)NA NA NAWhat would be the result of following code?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture