On Mar 17, 2011, at 11:40 PM, Sebastián Daza wrote:
Hi everyone,
Is there any command to identify the pattern of responses of a
database with this format:
year id
20081
20091
20082
20092
20083
20093
20084
20094
20104
Two methods assuming this is in a
Finally, I solved my problem using the following procedure and a
database called ej
ej$a - 1
head(ej)
ano nunico a
1 2008 1 1
2 2009 1 1
3 2008 2 1
4 2009 2 1
5 2008 3 1
6 2009 3 1
library(reshape)
dej - cast(ej, nunico ~ ano, sum, margins = FALSE)
head(dej)
Hi everyone,
Is there any command to identify the pattern of responses of a database
with this format:
year id
20081
20091
20082
20092
20083
20093
20084
20094
20104
I just need the frequency of the patterns grouped by id:
2008 2009 2010 = 80
3 matches
Mail list logo