I'm not really clear what you're trying to do. Could you provide a bit more detail? Do the elements of corp_data1 and corp_data2 correspond to one another or are they independent? Are you trying to get output with the same number of elements, or with a number of elements equal to the product of the two (a sort of cartesian product)? If it's the former, you should be able to do it with zip and map, if it's the latter, it seems like what you have should be appropriate.