I have the following table that can be generated using this code
structure(list(total = c(9410, 12951.1794783802), op = c(3896.66666666667,
6976.57663230241), ox = c(2200, 4920.84776902887), ox15 = c(183.333333333333,
694.262648008611), ox30 = c(133.333333333333, 368.090117767537
), hy = c(283.333333333333, 1146.14924596984), hy10 = c(NA, 433.993925588459
)), row.names = c(NA, -2L), class = c("tbl_df", "tbl", "data.frame"
))
While this currently has 2 rows and 7 columns, I want the resulting table to have 7 rows and 3 columns with the values in each current row to be transposed to its own column. Is there a way to do so using the pivot_longer() function?