作者yeu2 (咕嚕咕嚕~)
看板Statistics
標題[問題] SAS 資料處理方面
時間Wed Jul 30 18:30:50 2008
請問如果有一個 data set 如下:
id type
P1070 A13
P1086 B22
P1092 A13
P1100 C45
P1253 D11
P1284 D11
. .
. .
. .
(資料筆數很多)
如何把相同 type 卻不同 id 的人output
如:
id type
P1070 A13
P1092 A13
P1253 D11
P1284 D11
因為 type 類型有很多且都是編碼,沒辦法直接用
if type='A13';
所以有可能在不知道 type 為何的情況下,找到相同 type 卻不同 id 的人嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.66.226
1F:推 kenshin528:proc sort ; by type; 07/30 18:46
2F:→ yeu2:阿!!我敘述有誤,不過還是很感謝k大的幫忙^^ 07/30 20:22