How can I have the data.frame look like an output in the example below:
created_at negative positive
1 2020-03-06 0.8897419 0.7564513
2 2020-03-07 0.9041667 0.7989865
Output needed:
created_at x y
1 2020-03-06 negative 0.8897419
2 2020-03-07 negative 0.9041667
1 2020-03-06 positive 0.7564513
2 2020-03-07 positive 0.7989865
I tried the melt function, but it didn't work.