由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas question help
相关主题
sas base 123 question 82 answer is wrong?sas question
[提问]怎样sort这个dataset?a SAS question in base 70
sas adv 63题 52SAS programming question
SAS base questionSAS programming question
%do questionsSAS code question
SAS QUESTION:how to capture the last nonmissing observation?sas help
SAS questionSAS input format question
Question about multiple regression in Rask for help on one SAS code
相关话题的讨论汇总
话题: pet话题: cat话题: dog话题: owner话题: w5
进入Statistics版参与讨论
1 (共1页)
p***7
发帖数: 535
1
I have a dataset A;
Data A;
input pet$ owner$;
cards;
Pet owner
cat w1
cat w2
cat w3
dog w4
dog w5
; run;
How can I make it like something below? That is to keep only the first.pet
Pet owner
cat w1
w2
w3
dog w4
w5
Thanks so much!
p***7
发帖数: 535
2
I tried data A;
set A;
if first.pet then pet=pet;
else pet= '';
run;
it doesn't work
k*******a
发帖数: 772
3
need by pet
p***7
发帖数: 535
4
Thanks!x
1 (共1页)
进入Statistics版参与讨论
相关主题
ask for help on one SAS code%do questions
A SAS Data QuestionSAS QUESTION:how to capture the last nonmissing observation?
从大data 产生多个小data 的方法SAS question
发包子求大牛解SAS问题,急Question about multiple regression in R
sas base 123 question 82 answer is wrong?sas question
[提问]怎样sort这个dataset?a SAS question in base 70
sas adv 63题 52SAS programming question
SAS base questionSAS programming question
相关话题的讨论汇总
话题: pet话题: cat话题: dog话题: owner话题: w5