Formatting Dates in R -
i having issue formatting dates in dataset yyyymmdd
, convert them dd/mm/yyyy
.
i have tried lubridate library not luck in converting it.
thanks, droy
what have tried do? indeed reader see what's causing issue, rather guessing it.
nonetheless, think should work:
new_format <- paste(substr("20150625",7,8),substr("20150625",5,6),substr("20150625",1,4), sep="/")
note anyway class of object created above code not date:
class(new_format) [1] "character"
Comments
Post a Comment