For example, I have a dataframe like this:
df = data.frame(
  name = c('A', 'B', 'C'),
  a = c(1, 2, 3),
  b = c(4,5,6),
  c = c(7,8,9))
Eventually, I form a dataframe with this format:
Hence, what should I do to process this dataframe in this format?
Thank you.


 
    