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 1 a -1 -1 2 b -1 -3 3 c 1 1 thanks Adrian [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.