0

Hi and thank you in advance I have a dataframe like that:

          date1     date2
names1    12         45
names2    435        67

I would:

         date    values
names1   date1     12
names1   date2     45
names2   date1     435
names2   date2     67

In my dataframe I have hundred date and hundred names

diego
  • 1
  • 3
  • You are looking for a pivot to long, check the link that I added: the most straightforward way is with `tidyr::pivot_longer` – Maël Feb 13 '23 at 09:13

0 Answers0