在R裡面,對一個資料表的數據要做分組統計,可以接用tapply(R語言的apply ... 計算平均數:tapply(InsectSprays$count, InsectSprays$spray, mean) ...
確定! 回上一頁