Re: [R] Invalid Regular Expression

2011-06-14 Thread Jeff Newmiller
You didn't follow the posting guidelines and provide reproducible code, limiting both response accuracy and desire to help. However, your zip code regular expression string ends with a | symbol, suggesting that your vector of zip codes has an empty string at the end. (I can't resist asking whet

[R] Invalid Regular Expression

2011-06-14 Thread Abraham Mathew
I'm working with some data, and am trying to generate it in the following format. statecity zipcode I like pizza0 0 0 I live in Denver 0 1 0