hello dear friends ,
If I have the following vector for example :
d <- c(1:4)
i want to generate a data frame contain the total of all Possible non missing value which may occur ,
secnario 1 : no missing value
Scenario 2 : 1 missing value
Scenario 3 : 2 missing value
Scenario 4: 3 missing value
and so on ..
basically i want to generate similar to this data.frame .
I found it very challenging for me even with loops i couldn't figure out the mechanism how to do it . the table which i have contain more than 60 columns
Thank you