Skip to content
Prev 152509 / 398500 Next

Obtaining the first /or last record of a subject in a longitudinal study

It would have helped to see an example to clarify the input and
output to the problem but !duplicated(x) will be TRUE for the first
of each set of equal values in x and !duplicated(x, fromLast = TRUE)
for the last.  See ?duplicated for details.
On Thu, Aug 7, 2008 at 6:21 AM, Luwis Tapiwa Diya <siwulayid at gmail.com> wrote: