What will be the output of the following R code?
> x <- as.Date("2012-03-01")
> y <- as.Date("2012-02-28")
> x-y
> x <- as.Date("2012-03-01")
> y <- as.Date("2012-02-28")
> x-yA. Time difference of 3 days
B. Time difference of 2 days
C. Time difference of 1 days
D. Time difference of 5 days
Answer: Option B

Join The Discussion