Hi there,
I am very new to R and have not been able to find the answer to my question:
I have a table with experiments that were performed under specific conditions. For each condition, I have one row with the number of experiments that occurred (e.g. 17) and the number of experiments that were successful (e.g. 3). I want to adapt my dataset, so that for each experiment there is a separate row (ergo 17 rows) and for a number of rows (ergo 3 rows) a new column says that the experiment was a "success" and for the other rows (ergo 14) the experiment was a "fail". How can I do this?
For example, I want to go from this:
Temp RH Experiments Success
15 95 3 2
10 85 2 0
5 85 4 1
To this:
Temp RH Result
15 95 success
15 95 success
15 95 fail
10 85 fail
10 85 fail
5 85 success
5 85 fail
5 85 fail
5 85 fail
Thanks in advance