[R] modifying variables in R

From: Smith, James (EWLS) <james.smith2_at_riotinto.com>
Date: Fri, 21 Nov 2008 12:59:29 +1000


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 manually in a spreadsheet program like excel.

Any ideas please ?  

thanks  

James      

Dr James Smith
Senior Ecologist, EWL Sciences
Ph: 08 8942 5759 Fax: (08) 8942 5790
Email: james.smith_at_ewlsciences.com.au
<mailto:james.smith_at_ewlsciences.com.au>

This email is confidential and may also be privileged. If you are not the intended recipient, please notify us immediately and delete this message from your system without first printing or copying it. Any personal data in this email (including any attachments) must be handled in accordance with the Rio Tinto Group Data Protection Policy and all applicable data protection laws.

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 21 Nov 2008 - 03:47:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Nov 2008 - 06:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive