On Tue, Dec 7, 2010 at 8:43 AM, madr <madra...@interia.pl> wrote: > > many languages have shorthands for that operation like: > > variable += 1 > or > ++variable > > is there something like that in R ?
You can do this: > x <- 3 > `+`(x) <- 1 > x [1] 4 -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.