【发布时间】:2015-11-21 20:10:10
【问题描述】:
下面列出了一个原始数据文件:
RANCH,1250,2,1,Sheppard Avenue, "$64,000"
SPLIT,1190,1,1,Rand Street, "$65,850"
CONDON, 1400,2,1,Market Street, "80,050"
TWOSTORY, 1810,4,3,Garris Street, "$107,250"
RANCH, 1500,3,3,Kemble Avenue, "$86,650"
SPLIT, 1615, 4,3, West Drive, "94,450"
SPLIT, 1305, 3,1.5,Graham Avenue, "$73,650"
以下是代码:
data work.condo_ranch;
infield "file_specificaton" did;
input style $ @;
if style = 'CONDO' or style = 'RANCH' then
input sqfeet bedrooms baths street $ price: dollar10.;
run;
所以,我认为输出数据集包含 3 个观察值,而正确答案是输出包含 7 个观察值。有人告诉我为什么吗?非常感谢您的时间和关注。
【问题讨论】:
标签: sas