我有數據以Excel爲:R-轉換成數據矩陣格式同其他基質
Terms Category Weight
email TV 1.00
acccount Email 12.0
accept Phone 3.00
我還有其他的矩陣,其格式爲:
Terms TV Email Phone Contact Information Support .....
achieve 1 0. 0 0 0 0
acquired 0 10.20 0 0 0 0
across 0 0 3.00 0 0 0
現在我想轉換成以上數據轉換成以上格式像
Terms TV Email Phone Contact Information Support .....
email 1 0. 0 0 0.0 0
acccount 0 12.0 0 0 0.0 0
accept 0 0 0 1.23 0 0
我想通過程序R.任何幫助將不勝感激做到這一點。提前致謝。
你能不能提供一些數據一個不錯的教程?這將是有益的閱讀[這個SO主題](http://stackoverflow.com/q/5963269/640783) –
請檢查現在 –
是的..但如何做到這一點? –