negate: negate number

Description Usage Arguments Value Examples

View source: R/arithmetics.R

Description

The function negates number passed as a parameter. negate(1) returns -1

Usage

1
negate(x)

Arguments

x

A number

Value

a number with opposite sign

Examples

1
2
negate(1)
negate(-1)

EvgenyPetrovsky/hello.rpkg documentation built on April 9, 2018, 9:10 a.m.