Examveda

What will be the output of the following R code?
> x <- as.Date("2012-03-01")
> y <- as.Date("2012-02-28")
> x-y

A. 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


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming