Learn R Programming

operators (version 0.1-7)

plusEqual: Plus Equal Operators

Description

Plus equal operator

Usage

object %+=% value

Arguments

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
  require("R4X")
    x <- xmlNode( "test" )
    x %+=% '<foo><bar/></foo>'
    x

Run the code above in your browser using DataLab