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 <- vector(“numeric”, length = 10)
> x

What will be the output of the following R code?
> x <- vector(“numeric”, length = 10)
> x
a) 10
b) 0 0 0 0 0 0 0 0 0 0
c) 01
d) 00120

Answer: b
Explanation: You can also use the vector() function to initialize vectors.

Join The Discussion