BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 중복되는 관측치 중 1개만 남기고 삭제하는 방법

Started ‎06-07-2021 by
Modified ‎06-07-2021 by
Views 1,943

sort 프로시져에서  nodupkey 옵션을 이용하면 by 문장의 변수에 대해서 중복값을 삭제합니다.

proc sort data=old out=new nodupkey;

by X ; /*       중복되는 변수명 */

run;

Version history
Last update:
‎06-07-2021 09:25 PM
Updated by:
Contributors

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Article Labels
Article Tags