[程式] SAS用if命令句篩選季資料

看板Statistics作者 (Pandora`s Box)時間11年前 (2014/06/15 16:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
------------------------------------------------------------------------ [軟體程式類別]: SAS [程式問題]: 資料處理 [軟體熟悉度]: 低(1~3個月) [問題敘述]: 請問一下,我現在有一個code如下,在date的部分是 if date < '01jan1963'd then delete; 但是我的資料是1963Q1的形式,請問我該怎麼修改這一條呢? 另外請問一下再'之後的d是什麼意思? 有搜尋過網頁跟看user guide,但可能問題太基本我找不太到也不太知道關鍵字是啥..囧 [程式範例]: data k; set quarterly; if date < '01jan1963'd then delete; if y=. then y=2; run; ----------------------------------------------------------------------------- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.245.65.128 ※ 文章網址: http://www.ptt.cc/bbs/Statistics/M.1402819764.A.22B.html
文章代碼(AID): #1JdLIq8h (Statistics)