plusEqual: Plus Equal Operators

Description Usage Arguments Value Note Author(s) Examples

Description

Plus equal operator

Usage

1
  object %+=% value

Arguments

object

object to which to add something

value

object to add

Value

NULL. Used for the side effect of changing the value of object

Note

The operator %+=% is S3-generic with a single default method implemented at the moment.

Author(s)

Romain Francois <francoisromain@free.fr>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
                        
  
  ### standard examples
  x <- 4
  x %+=% 4
  x
  
  ### XML examples with the R4X package
  ## Not run: 
    require("R4X")
    x <- xmlNode( "test" )
    x %+=% '<foo><bar/></foo>'
    x
  
## End(Not run)
  

operators documentation built on May 2, 2019, 2:47 p.m.