Re: [R] modifying variables in R

2008-11-20 Thread Jorge Ivan Velez
Dear James, Try this: as.Date('20081121',"%Y%m%d") [1] "2008-11-21" HTH, Jorge On Thu, Nov 20, 2008 at 9:59 PM, Smith, James (EWLS) < [EMAIL PROTECTED]> wrote: > G'day all, > > > > I have many, very long time series' that come in to R in txt format and > so the date column is structured: > >

[R] modifying variables in R

2008-11-20 Thread Smith, James (EWLS)
G'day all, I have many, very long time series' that come in to R in txt format and so the date column is structured: 20081121 I would like them all to look like 2008-11-21 but cannot find any way to add these characters to all dates in one column in R. I have way too many files to do it man