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?
a <- (“a” , “b”)
mode(a)

What will be the output of the following R code?
a <- (“a” , “b”)
mode(a)
a) Character
b) Numeric
c) Complex
d) Integer

Answer: a
Explanation: Mode of the given command is a character. There are a complementary function writeLines() that takes a character vector and writes each element of the vector one line at a time to a text file.

Join The Discussion