[R] Invert the sign of a number

Peter Flom peterflomconsulting at mindspring.com
Thu Oct 29 14:07:31 CET 2009


Fran100681 <franaruto at hotmail.it> wrote
>
>just a simple question
>
>How can I do to invert the sign of a number? (for example: -4 to 4, 2 to -2
>and so on..)
>I was looking for a specific function in R but I didn't found it...
>thank you
>

Is there something wrong with *-1 ?

Peter

Peter L. Flom, PhD
Statistical Consultant
Website: www DOT peterflomconsulting DOT com
Writing; http://www.associatedcontent.com/user/582880/peter_flom.html
Twitter:   @peterflom




More information about the R-help mailing list