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 < – Sys.time()
> class(x)

What will be the output of the following R code?
> x < - Sys.time()
> class(x)
a) “POSIXct” “POSIXt”
b) “POSIXXt” “POSIXt”
c) “POSIXct” “POSIct”
d) “POSIXt” “POSIXt”

Answer: a
Explanation: Times can be coerced from a character string using the as.POSIXlt or as.POSIXct function.

Join The Discussion