看板 Statistics 關於我們 聯絡資訊
[軟體程式類別]:SAS [程式問題]:資料處理 [軟體熟悉度]: 新手 [問題敘述]: 跑資料庫時想留下同一個案name變項的所有資料 ,只單做一次的個案刪除 不知道程式碼應該如何下手填寫 [程式範例]: 無 如果有熟悉軟體之強者幫助會十分感激 ----- Sent from JPTT on my Google Pixel 4 XL. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.128.139.121 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1586938356.A.C3F.html
anniecs: proc sql; 04/16 02:01
anniecs: create table MoreThanOne as 04/16 02:01
anniecs: select * 04/16 02:01
anniecs: from OldData 04/16 02:01
anniecs: where name not in 04/16 02:01
anniecs: (select name from Oldata group by name having count(* 04/16 02:01
anniecs: )=1); 04/16 02:01
anniecs: quit; 04/16 02:01
mkopl: 先sort,然後篩not(first.id =1 & last.id =1) 04/16 18:52
ninjaying: proc sort nouniquekey 04/19 12:45
j1990312: m大是對的,我記得要再加上 by id 04/23 12:19