R語言 :x是你的資料data = data.frame("Type" = unique(x$Type) , "P95"...
試試看 apply(data,2,sum)
(tb = data.frame(ID =c(rep(1201,5),rep(1202,4)),品項 = c("衛生紙",rep("...