Many thanks for this, I will try this code. Much appreciated.
-Original Message-
From: Peter Dalgaard [mailto:p.dalga...@biostat.ku.dk]
Sent: 22 April 2009 22:05
To: David Winsemius
Cc: Bronagh Grimes; r-help@r-project.org
Subject: Re: [R] Count Code
David Winsemius wrote:
>
>
David Winsemius wrote:
On Apr 22, 2009, at 3:42 PM, Bronagh Grimes wrote:
Hi there,
I am interested in converting SAS code to R & I wondered if anyone had
any quick R code/tips for the following piece of test SAS code?
Any feedback greatly appreciated.
data A1;
set A1;
count + 1;
by subj
On Apr 22, 2009, at 3:42 PM, Bronagh Grimes wrote:
Hi there,
I am interested in converting SAS code to R & I wondered if anyone had
any quick R code/tips for the following piece of test SAS code?
Any feedback greatly appreciated.
data A1;
set A1;
count + 1;
by subject_id;
if first.subjec
Hi there,
I am interested in converting SAS code to R & I wondered if anyone had
any quick R code/tips for the following piece of test SAS code?
Any feedback greatly appreciated.
data A1;
set A1;
count + 1;
by subject_id;
if first.subject_id then count = 1;
run;
4 matches
Mail list logo