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.

What will be the output of the following R code?
> x < – list(aardvark = 1:5)
> x[[“a”, exact = FALSE]]

What will be the output of the following R code?
> x < - list(aardvark = 1:5)
> x[[“a”, exact = FALSE]]
a) 1 2 3 4 5
b) 2 3 5
c) 1 3 3 5
d) 1 2 3

Answer: a
Explanation: This is often very useful during interactive work if the object you’re working with has very long element names.

Join The Discussion