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

What will be the output of the following R code?
> x < - list(aardvark = 1:5)
> x$a
a) 1 2 3 4 5
b) 2 3 5
c) 1 3 3 5
d) 1 2 3

Answer: a
Explanation: Partial matching of names is allowed with [[ and $.

Join The Discussion