assigns | R Documentation |
this needs to be tested...
e1 %=+% e2 e1 %=-% e2
e1 |
Object to be updated |
e2 |
right side statement |
val <- 1 val %=+% 2 val # 3 val %=+% 2 val # 5 val %=-% 1 val # 4 ## Not run: val %=+% c(1, 2, 3) # fails ## End(Not run) val <- c(1, 2, 3) val %=+% c(1, 2, 3) # 2 4 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.