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
Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.