I have tried looking up solutions using reshape, but I can't figure out how to rearrange my table to exactly how I want it.
My table looks something like this:
myTable<-data.table("AA-TotalPop-Mean"=c(1), "AA-Fr-Mean"=c(33), "AA-SW-Mean"=c(2),
"AA-TotalPop-Median" = c(11), "AA-Fr-Median"= c(3), "AA-SW-Median" = c(22))
I don't know how to write R code for how I want my R table to look in the end, but here is a screenshot of an excel table version: