Skip to content
Back to formatted view

Raw Message

Message-ID: <CAF8bMca+ZaiVH0A9wKCgyhV_gO9rchYV_THpyVNOiOrawqjPJQ@mail.gmail.com>
Date: 2014-08-07T15:36:26Z
From: William Dunlap
Subject: ask for help
In-Reply-To: <7C35CC8C-6BC0-469D-858D-463CB09EC09B@kasterma.net>

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.