I have a question about indirect assignment.

I have a csv file with field names on the first row.

I want to be able to assign the field names to the proper columns in the rest 
of the data (i.e.)

        load 'csv'
        data=: readcsv "file.csv"
        fieldnames=: {.data         NB.  $fieldnames = 22
 
        data=:}.data                NB.  $data = 33440 22

        (fieldnames) =: ?????  NB.  I want to assign each column in data to its 
respective field name in fieldnames.

I've looked through the wiki and at the examples in 
http://www.jsoftware.com/help/learning/12.htm (12.2.3) and can't seem to find 
an answer.  I am guessing this is probably a trivial problem, but I am stumped.





----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to