operators (version 0.1-8)

plusEqual: 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

Examples

Run this code
  
  ### 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)
  

Run the code above in your browser using DataLab