Hi,
I'm sorry i didn't say clearly.



>for (i in 1:10){

+     print(sample(9,4,replace=T))

+ }
[1] 2 5 5 2
[1] 6 2 1 5

[1] 9 5 9 7
[1] 2 6 4 1
[1] 8 5 4 5
[1] 6 2 3 7

[1] 6 1 7 3

[1] 9 5 4 7

[1] 6 4 8 5
[1] 1 5 6 3

I mean when it shows these reults.
Then, what should I do to show the top 3 numbers with highest frequencies for 
each position.
It shows ten rows and four lists. But I'd like to calculate the highest 
frequencies in each list.
For example, in the first list, the highest frequencie is 6. 
Because I have to do that procedure for 100 times, and it's possible to 
calculate by self.

Thank you!! 



_________________________________________________________________


        [[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