我的数据框看起来像这样,但我有数百列
t1 <- c(11,2,3,4) t2 <- c(10,2,3,4) total1 <- c(8,2,3,4) total2 <- c(4,6,3,4) test <- data.frame(t1,t2,total1,total2) t1 t2 total1 total2 1 11 10 8 4 2 2 2 2 6