Hi every one:)
I have a dataset, with variable v1 v2 and Rev, see below:
V1 | V2 | Rev |
0.01 | 0.01 | 453 |
0.01 | 0.02 | 564 |
0.01 | 0.03 | 2354 |
0.02 | 0.01 | 754 |
0.02 | 0.02 | 3534 |
0.02 | 0.03 | 1213 |
0.03 | 0.01 | 435 |
0.03 | 0.02 | 23 |
0.03 | 0.03 | 543 |
now I would like to transfer dataset into an array:
v2 | |||
v1 | 0.01 | 0.02 | 0.03 |
0.01 | 453 | 564 | 2354 |
0.02 | 754 | 3534 | 1213 |
0.03 | 435 | 23 | 543 |
How could i accomplish that? should I use array? is there any procedure better than array?
Great Thanks,
Jenny
Hi jjjunyi,
While using the cross table option in VA, you can tranform the data into the expected format.
I Expect you are using SAS VA, asking the question on this community.
greetings.
Jenny,
Looks like you got what you needed from the data management community: How to transfer dataset into array?
Thanks everyone!
Anna
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.