MCQs>Finance & Management>R>What is the output of the following R code? x<-2; y <- c(1:3); paste("The value of x is", x, "and the value of y[x] is", y[x], sep=" ")
R MCQs
What is the output of the following R code? x<-2; y <- c(1:3); paste("The value of x is", x, "and the value of y[x] is", y[x], sep=" ")
Answer
Correct Answer: "The value of x is 2 and the value of y[x] is 2"
Explanation:
Note: This Question is unanswered, help us to find answer for this one