全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1458 5
2015-03-18
QUESTION 112
The contents of the raw data file SIZE are listed below:
----|----10---|----20---|----30
72 95
The following SAS program is submitted:
data test;
in file 'size';
input@ 1 height 2.@ 4 weight 2;
run;
Which one of the following is the value of the variable WEIGHT in the output data
set?
A. 2
B. 72
C. 95
D. . (missing numeric value)


为什么选择2,我知道这里2没有.,所以看成一个column, 但是@4 weight也会把指针带到4那里读一个那就是9啊?:(



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-3-18 10:02:42
2是指第二列,应该是优先级应该比前面的@4高, @100结果还是一样
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-3-18 10:34:40
input@ 1 height 2.@ 4 weight 2;

恩,楼上说的对,这样写会从第二列读取weight的值
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-3-18 11:48:26
wpfwxn 发表于 2015-3-18 10:34
input@ 1 height 2.@ 4 weight 2;

恩,楼上说的对,这样写会从第二列读取weight的值
then what number does it read, why 2 in on the second row then?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-3-18 11:57:18
hwyale 发表于 2015-3-18 11:48
then what number does it read, why 2 in on the second row then?
是column 不是row,他要是写 input m$ 2-5  这种是最简单的列输入,文档只不过是 只写了个2
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-3-18 12:23:21
sushe1527 发表于 2015-3-18 11:57
是column 不是row,他要是写 input m$ 2-5  这种是最简单的列输入,文档只不过是 只写了个2
!!! thank you!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群