Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following extracts first element from the following R vector?
> x < – c(“a”, “b”, “c”, “c”, “d”, “a”)

Which of the following extracts first element from the following R vector?
> x < - c("a", "b", "c", "c", "d", "a")
a) x[10]
b) x[1]
c) x[0]
d) x[2]

Answer: b
Explanation: The element which we want to extract will be in the format of variable[index value of the element] in R script.

Join The Discussion