Re: [R] Reclassify string values

2011-11-03 Thread David Winsemius
On Nov 3, 2011, at 4:40 PM, Peter Langfelder wrote: On Thu, Nov 3, 2011 at 1:31 PM, Zev Ross wrote: Hi Peter, Thanks for the response. What you've suggested works fine but I'm looking for something that is simpler than my solution and avoids the pesky warning message. Your response avoid

Re: [R] Reclassify string values

2011-11-03 Thread Peter Langfelder
On Thu, Nov 3, 2011 at 1:31 PM, Zev Ross wrote: > Hi Peter, > > Thanks for the response. What you've suggested works fine but I'm looking > for something that is simpler than my solution and avoids the pesky warning > message. Your response avoids the warning message but just as complex (if > not

Re: [R] Reclassify string values

2011-11-03 Thread Zev Ross
Hi Peter, Thanks for the response. What you've suggested works fine but I'm looking for something that is simpler than my solution and avoids the pesky warning message. Your response avoids the warning message but just as complex (if not more). I just assumed there would be a function along t

Re: [R] Reclassify string values

2011-11-03 Thread Peter Langfelder
On Thu, Nov 3, 2011 at 11:59 AM, Zev Ross wrote: > Hi All, > > Is there a simple way to convert a string such as c("A", "B" ,"C", "D") to a > string of c("Group1", "Group1", "Group2", "Group2"). Naturally I could use > the factor function as below but I don't like seeing that warning message > (an