[R] Invert the sign of a number

Karl Ove Hufthammer karl at huftis.org
Thu Oct 29 15:24:55 CET 2009


On Thu, 29 Oct 2009 09:05:22 -0400 Duncan Murdoch <murdoch at stats.uwo.ca> 
wrote:
> You want the unary - operator.  For example,
> 
> -x

It even has a nice help page:

?"-"

-- 
Karl Ove Hufthammer




More information about the R-help mailing list