How can I generate a matrix of 1 and 0 in R, for 1000 items (rows), where each item can only be 1 for a single trait out of 6 possibilities (columns) traits A, B, C, D, E and F e.g.
item A B C D E F
1 1 0 0 0 0 0
2 0 1 0 0 0 0
3 1 0 0 0 0 0
4 0 0 0 0 1 0
5 0 0 0 0 1 0
6 0 0 1 0 0 0
7 0 0 0 1 0 0
8 0 1 0 0 0 0
9 1 0 0 0 0 0
10 0 0 0 0 1 0
So that when plotting these 6 traits (on the x axis A=0, B=0.2, C=0.4, D=0.6, E=0.8, F=1), their density probability follows a beta (3,7) distribution?
My objective is to generate a set of similar matrices, each representing different beta distributions e.g.(7,3),(2,8),(8,2), (3,3), so that they may jointly cover a wide range of them, including if possible a bimodal distribution other than (0.5, 0.5).