介紹如何使用R 的 dplyr 套件,將data frame 重複的名稱的列合併,加總各欄位值。 ... 分組計算平均 df %>% group_by(x) %>% summarise_all(mean)
確定! 回上一頁