I have this table:
       nb_5 nb_10 nb_15 nb_20 nb_25 nb_30 nb_35
 [1,]    0     0     1     0     0     0     0
 [2,]    0     0     1     1     0     0     1
 [3,]    0     0     1     0     2     0     1
 [4,]    0     0     0     0     0     1     0
 [5,]    0     1     0     0     0     1     1
 [6,]    0     1     0     1     3     0     1
 [7,]    0     0     0     1     0     2     1
 [8,]    0     1     0     1     0     0     0
 [9,]    0     1     1     1     1     1     2
[10,]    0     1     0     1     1     0     0
The number in this table represents my values. Each column represents a condition of my values. Thus in the first column we have the data under the condition "nb_5".
It is possible to transform this table so that it has 2 columns: 1 column "nb_of" with repetition of 5, of 10, of 15 etc.
nb_of <- c(5,5,5,5,5,5,5,5,5,5,10,10,10,10,10,10,10,10,10,10,15,15,15,15)
data <- c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,0) 
newdata <- cbind(nb_of, data) 
 
     
    