I have an array:
[['a','1'.'2','3','4'],['b','5','6','7','8'],['c','9','10','11','12'],['d','13','14','15','16']]
I want to subset this and transpose. For transpose it i tried zip function but it outputs array which when i write into a csv file doesn't have the format as tab delimited.
output desired:
a b
1 5
2 6
3 7
4 8
c d
9 13
10 14
11 15
12 16
Since i am not able to make tab here i am leaving three spaces in the output.
zip(array[0],array[1])
andzip(array[1],array[2])
. – Ashwini Chaudhary Jul 14 '13 at 0:34