grapes-slash-equals-grapes: Divide In Place

Description Usage Arguments Value Examples

Description

Change the value of an object on the search path through division. Equivalent to '/=' in other languages. See incr for details on implementation.

Usage

1
x %/=% value

Arguments

x

object to be modified; can be a symbol, character, or extraction language object.

value

value with which to change x by

Value

the new value of x, invisibly

Examples

1
2
3
x <- 10
x %/=% 2
identical(x, 5)  # TRUE

refer documentation built on Nov. 8, 2021, 5:08 p.m.