Dear all, How can I create an enumeration variable by groups?
I have:
gender score 1 48 1 45 2 50 2 42 1 41 2 51 1 52 1 43 2 52
and Y would like to get:
gender score index
1 48 1
1 45 2
1 41 3
1 52 4
1 43 5
2 50 1
2 42 2
2 51 3
2 52 4
best regards
_________________________________________________________________
[[replacing trailing spam]]
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.