1
我有一個看起來像這樣的R數據幀:R數據幀轉換?
Country Property Value
Canada Capital Ottawa
Canada Population 38
Canada Language1 French
Canada Language2 English
United States Capital Washington
United States Population 280
United States Language1 English
United States Language2 NA
我想重新安排這使得它看起來像這樣:
Country Capital Population Language1 Language2
Canada Ottawa 38 French English
United States Washington 280 English NA
有沒有辦法做到這一點的轉型? 謝謝。
看看http://stackoverflow.com/questions/1533493/reshaping-data-frame-in-r – 2012-04-17 20:34:28