luwis tapiwa diya siwulayidgmailcom dear r users wondering anyone knows obtainsubset first andor last record subject longitudinal setup normally sas one uses firstvariable1 lastvariable1 question r way regards luwis diya phd student biostatistics biostatistical center school public health catholic university leuven uz st raphael kapucijnenvoer 35 b3000 leuven belgium cell 320497 22 94 83 phone32016 32 68 86 office phone32016 32 98 76 home fax 32016 33 70 15 email luwisdiyamedkuleuvenbe httpmedkuleuvenbebiostatstaffldhtm alternative html version deleted ______________________________________________ rhelprprojectorg mailing list httpsstatethzchmailmanlistinforhelp please read posting guide httpwwwrprojectorgpostingguidehtml provide commented minimal selfcontained reproducible code thu 07 aug 2008 122145 0200 r obtaining first last record subject longitudinal study