[R] Format

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sun Jun 9 22:54:54 CEST 2024


On 2024-06-09 4:39 p.m., Val wrote:
> HI all,
> 
> My
> I am trying to convert character date (mm/dd/yy)  to YYYY-mm-dd date
> format in one of the columns of my data file.
> 
> The first few lines of the data file looks like as follow
> 
>   head(Atest,10);dim(Atest)
>        ddate
> 1  19/08/21
> 2  30/04/18

Those aren't legal months in the first entry.  Your format looks like it 
should be "%d/%m/%y".

Duncan Murdoch



More information about the R-help mailing list