Dear fellow R-users,

Say we have a matrix x, defined as follows

set.seed(50)
x <- matrix(rbinom(100*5,1, p=0.75),nrow=100, ncol=5)

Now the interpretation of x is that each for of x is actually a sequence of 
length 5, and i would like to transform x in such a way that I can describe the 
frequencies of sequences observed among the 100. How can I do this efficiently?

Thanks for any assistance!
Greg



      __________________________________________________________________
[[elided Yahoo 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.

Reply via email to