由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas help
相关主题
R data.frame问个r问题
how to use Scan in SAS (so it works like parse in excel)SAS里怎么根据VALUE来选择需要OUTPUT的COLUMNS
[合集] 问excel牛人一个问题求助关于Excel IF 的function
请教一个关于R的问题please help on R subtable question !
copy and paste column in sasSAS一问
求助!请教我这个SAS code哪里错了啊?What is wrong with following code?
求问 sas _c_ 什么意思how to do permutation in R?
求助:sas不同格式的日期比较[合集] 跪求: how to count by column. thanks a million
相关话题的讨论汇总
话题: e9话题: e1话题: e2话题: d1话题: c2
进入Statistics版参与讨论
1 (共1页)
p**********l
发帖数: 1160
1
I need to make two files togeter, the first file contains for example a b c
d four columns and there are more than 40 records.
Let say it looks like this:
a1 b1 c1 d1
a2 b2 c2 d2
...
a6 b6 c6 d6
and I have a second file that has just one column e and this column has more
than 10 records,
Let's say it looks like this:
e1
e2
...
e9
My questions if I want the output to show that every record in the fisrt
file needs to have e1, e2, ..e9like this:
a1 b1 c1 d1 e1
a1 b1 c1 d1 e2
...
a1 b1 c1 d1 e9
a2 b2 c2 d2 e1
a2 b2 c2 d2 e2
...
a2 b2 c2 d2 e9
...
a6 b6 c6 d6 e9
This is not a homework problem. I want to write a sas code because this type
of process has been done manualy in the past.Could anybody kindly give me
some suggestions?
Thanks,
l******n
发帖数: 9344
2
proc sql;
select A.*, B.* from firsttable A, secondtable B;
quit;

c
more

【在 p**********l 的大作中提到】
: I need to make two files togeter, the first file contains for example a b c
: d four columns and there are more than 40 records.
: Let say it looks like this:
: a1 b1 c1 d1
: a2 b2 c2 d2
: ...
: a6 b6 c6 d6
: and I have a second file that has just one column e and this column has more
: than 10 records,
: Let's say it looks like this:

1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] 跪求: how to count by column. thanks a millioncopy and paste column in sas
[合集] excel并行一问,急~~~求助!请教我这个SAS code哪里错了啊?
[合集] 问个SAS和R的问题求问 sas _c_ 什么意思
遇到一个SAS问题求助:sas不同格式的日期比较
R data.frame问个r问题
how to use Scan in SAS (so it works like parse in excel)SAS里怎么根据VALUE来选择需要OUTPUT的COLUMNS
[合集] 问excel牛人一个问题求助关于Excel IF 的function
请教一个关于R的问题please help on R subtable question !
相关话题的讨论汇总
话题: e9话题: e1话题: e2话题: d1话题: c2