Re: [R] convert data frame values

2008-04-03 Thread Peter Alspach
. Peter Alspach > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Johnson > Sent: Friday, 4 April 2008 10:58 a.m. > To: r-help > Subject: [R] convert data frame values > > Hello: > How can I interchange symbols for numeric valu

[R] convert data frame values

2008-04-03 Thread Adrian Johnson
Hello: How can I interchange symbols for numeric values in a data frame. > test f s t 1 a 1 -1 2 b 1 -3 3 c -1 1 say I have test d.f . I want to make flip number that are positive to negative and negative to positive only for numerics in column 's' my desired result: > new.test f s t