使用 bigsummary 做資料摘要
既然你已經會匯入並附加 big.matrix 物件,就可以開始探索這個物件中的資料。前面提過,有一整套套件是為了探索與分析以 big.matrix 形式儲存的資料而設計的。在這個練習中,你會使用 biganalytics 套件來建立摘要。
本練習屬於課程
R 的可擴展資料處理
練習說明
先前練習中的參照物件 mort 已可在你的工作空間中使用。
- 載入
biganalytics套件。 - 使用
colmean()取得mort各欄的平均值。 - 使用 biganalytics 的
summary()來產生各變數的摘要。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Load the biganalytics package
___
# Get the column means of mort
___
# Use biganalytics' summary function to get a summary of the data
___