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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.