Dear R,
I have data like this
I I D I D D D D D I D I D I D I D I D D D I D D I I I I
I I I I D I D I D I I I D I I I D I D I D I D I 0 0 I I I I I I I
I I D I D I D I D I I I D I I I D I D I D I D I I I D I I I I I
Now for each row i want to make count in groups
2 in each group for all possible groups like for each row
count of All I I in 1 group then
all D I and
D D in another group
result should be count of each group in there respective rows
Regards
GRR
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.