-3

I would like to know, how can I do long format table.

this is what I have:

and this is what I want

if you are asking what I would like to do, it is for ggplot2 proportional stacked area chart. thank you very much

karol17
  • 1
  • 4
  • 2
    https://stackoverflow.com/search?q=%5Br%5D+how+to+create+a+long+format+table+from+multiple+columns ... Posting a question with only links to pictures of data and apparently not having done any searching is not a great way to make your first SO posting. I suggest you delete this question which will undoubtedly attract lots of downvotes and read the [help] pages and learn how to [ask] – IRTFM May 11 '22 at 21:00

1 Answers1

-2

Try:

library(tidyverse)

your_dataframe%>% pivot_longer(-Date, names_to = "plylum", values_to = "percent")

Marc
  • 49
  • 3