Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: transforming XY data to X and Multiple Y column data?

by zappepcs (Acolyte)
on Sep 29, 2010 at 02:23 UTC ( [id://862536]=note: print w/replies, xml ) Need Help??


in reply to transforming XY data to X and Multiple Y column data?

Not sure how you ended up doing it, but if you simply create an array for every row, scroll through hashes and assign the right columnar data to the right row array. The row arrays can be elements of a hash to help make it easier to deal with. @{$matrix{"1"}} = @row1 $$matrix{"1"}}[0] = 90; $$matrix{"1"}}1 = 70 and so forth, where {"1"} is the row num of your original data and the key value of the hash, and the 1 is the #id'x' number or column number or element number of the hash - might put totals in column zero or whatever...
  • Comment on Re: transforming XY data to X and Multiple Y column data?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://862536]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-23 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found