Hello there fellow R-users, 

I have received some data which comes in the following format: 

example1<-"200301"

The first 4 digits correspond to the year and the remaining 2 digits
correspond to the week of the year. 
I have tried to convert this to a date by using strptime as follows:

strptime(example1,format="%Y%U")

where U (looking up strptime) is the week of the year but it always returns
NA. 

ANy help in successfully converting this string format to a date would be
much appreciated

Regards

Wayne




Dr Wayne R. Jones
Senior Statistician / Research Analyst
KSS Limited
St James's Buildings
79 Oxford Street
Manchester M1 6SS
Tel: +44(0)161 609 4084
Mob: +44(0)7810 523 713




KSS Ltd
Seventh Floor  St James's Buildings  79 Oxford Street  Manchester  M1 6SS  England
Company Registration Number 2800886
Tel: +44 (0) 161 228 0040       Fax: +44 (0) 161 236 6305
mailto:[EMAIL PROTECTED]                http://www.kssg.com


The information in this Internet email is confidential and m...{{dropped}}

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to