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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -