[R] ask for help

William Dunlap wdunlap at tibco.com
Thu Aug 7 17:36:26 CEST 2014

I prefer the idiom
  c(TRUE, a[-1] != a[-length(x)])
because it works for character and other data types as well.

I also find that thinking in terms of runs instead of subscripting
tricks is easier.

More information about the R-help mailing list