On Tue, Dec 7, 2010 at 12:25 PM, Bert Gunter <gunter.ber...@gene.com> wrote: > Ted: > > Inline below... > > On Tue, Dec 7, 2010 at 8:42 AM, Ted Harding <ted.hard...@wlandres.net> wrote: >> Indeed! >> >> x <- x + 1 >> >> (and being generous with unnecessary spaces) uses 10 characters. >> >> `+`(x)<-1 >> >> (being mean with them) uses 9. The "mean" version of the first >> uses only 6: x<-x+1 >> >> However, I suppose there is merit in the spiritual exercise >> of contemplating how `+`(x)<-1 gets worked out! > > AFAICS it doesn't. >> `+`(x)<-1 > Error in +x <- 1 : could not find function "+<-"
Sorry, my code was missing the first line: > `+<-` <- `+` > > 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.