1.

Point out the correct statement?(a) Times use the POSIXct and POSIXlt class(b) Dates and times have special classes in R that allow for numerical and statistical calculations(c) Character strings can be coerced to Date/Time classes using the strptime function(d) All of the mentionedThe question was posed to me by my school principal while I was bunking the class.This interesting question is from Vectorized Operations topic in chapter R – Data Storage, Formats, Objects and Operations of R Programming

Answer»

Correct choice is (d) All of the mentioned

Easiest explanation: CHARACTER STRINGS can be coerced to Date/Time classes using the as.Date, as.POSIXlt, or as.POSIXct.



Discussion

No Comment Found

Related InterviewSolutions