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 are the typeof(x) and mode(x) in the following R syntax?
x<-1:3

What are the typeof(x) and mode(x) in the following R syntax?
x<-1:3
a) Numeric, Integer
b) Integer, Numeric
c) Integer, Integer
d) Numeric, Numeric

Answer: b
Explanation: Here typeof() tells about the data type. They are an important type of object in R and are used in a variety of statistical modelling applications. You can determine an object’s type with the typeof function.

Join The Discussion