1.

Which of the following truncates real x to integers?(a) as.order(x)(b) as.integer(x)(c) as.numeric(x)(d) as.character(x)

Answer» Correct option is (b) as.integer(x)

To elaborate: as.integer for object of class truncates decimal part of image values and then converts to type integer.


Discussion

No Comment Found

Related InterviewSolutions