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 < – 1:3
> names(x)

What will be the output of the following R code?
> x < - 1:3
> names(x)
a) NULL
b) 1
c) 2
d) 4.5

Answer: a
Explanation: R objects can have names, which is very useful for writing readable code and self-describing objects.

Join The Discussion