[討論] 同類型資料合併
假設有一組data
city transportation brand volume
1 1 1 45
1 1 2 64
1 2 1 12
1 2 2 24
1 3 1 67
1 3 2 12
1 3 3 09
2 1 1 12
2 1 2 76
2 2 1 68
2 2 2 23
2 3 1 76
2 3 2 24
做研究時常會需要將資料用各種類別切割,
想請問如何將同一種transportation資料合併?
如第一欄第二欄transportation=1, 將brand=1 and brand=2的volume加總
資料最後變為
city transportation volume三欄,brand這欄合併。
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.177.143
※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1449126953.A.58C.html
→
12/03 15:27, , 1F
12/03 15:27, 1F
→
12/03 17:32, , 2F
12/03 17:32, 2F
→
12/03 17:37, , 3F
12/03 17:37, 3F
→
12/07 00:03, , 4F
12/07 00:03, 4F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章