Re: [R] Patterns on postal codes

2014-01-08 Thread arun
t;NN9YZE6"      "S7V  1J9"    Yours sincerely / Med venlig hilsen Frede Aakmann Tøgersen Specialist, M.Sc., Ph.D. Plant Performance & Modeling Technology & Service Solutions T +45 9730 5135 M +45 2547 6050 fr...@vestas.com http://www.vestas.com Company reg. name: Vestas

Re: [R] Patterns on postal codes

2014-01-08 Thread Jeff Newmiller
9YZE6" "S7V 1J9" Yours sincerely / Med venlig hilsen Frede Aakmann T?gersen Specialist, M.Sc., Ph.D. Plant Performance & Modeling Technology & Service Solutions T +45 9730 5135 M +45 2547 6050 fr...@vestas.com http://www.vestas.com Company reg. name: Vestas Wind S

Re: [R] Patterns on postal codes

2014-01-07 Thread Frede Aakmann Tøgersen
+45 2547 6050 fr...@vestas.com http://www.vestas.com Company reg. name: Vestas Wind Systems A/S This e-mail is subject to our e-mail disclaimer statement. Please refer to www.vestas.com/legal/notice If you have received this e-mail in error please contact the sender. > -Original Message- &

[R] Patterns on postal codes

2014-01-07 Thread Jeff Johnson
Hi all, I'm pretty new to R and have a question. I have a postal_code field which can have a variety of values such as: For US postal codes: 22942-0173 or 32601 For Canada postal codes: N9YZE6 or S7V 1J9 What I want to do is represent these as patterns, such as: US: N- or N Canada: AN