I have a vector with dates values in this format dd/mm/yy e.g.(27/06/16). I want to convert this in this format yyyy-mm-dd e.g.(2016-06-27) for logical comparison. I am usin
Use lubridate package
lubridate
library(lubridate) dmy("27/06/16")