Assume I have created a variable containing date and time:
a <- ymd_hms("2014-01-01 12:23:34")
How do I create another variable that only has the date? That is, what should I do to transform a
's value to be identical to b
's value where b
is
b <- ymd("2014-01-01")