plusEqual {operators}R Documentation

Plus Equal Operators

Description

Plus equal operator

Usage

  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

                        
  
  ### 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)
  

[Package operators version 0.1-8 Index]