I have a dataframe like this :
| A_replicate_1 | A_replicate_2 | B_replicate_1 | B_replicate_2 |
How can I modify this dataframe to something like this by stacking A replicates into one column and B replicates into the other column?
| A | B |
I tried stacking, but the code became bit too long as I need to stack it and select(-variable) to only have the data I need.