Is it possible to write a function that uses the headers in a CSV to specify which column to use?
For example, I have a CSV format:
Name,LastName,Age,Address
Bob,Green,26,123 This Street
Jane,Doe,35,234 That Street
And I have another format:
LastName,Name,Address,Age
Brown,Dave,123 Other Street,17
Jane,Doe,234 That Other Street,35
And I wanted The Name
, LastName
and Address
, could I/how would I use the headers to specify the columns?