hi,
i have a csv file similar to the following :
title title2 h1 h2 h3 ...
l1.1 l1 1 1 0
l1.2 l1 0 1 0
l1.3 l1 1 0 1
l2.1 l2 0 0 1
l2.2 l2 1 0 1
l3.1 l3 0 1 1
l3.2 l3 1 1 0
l3.3 l3 1 1 0
l3.4 l3 1 1 0
i want to be able to add the columns in the following manner:
h1 ( l1.1 + l1.2+ l1.3 ) = 2
h1 ( l2.1 + l2.2 ) = 1
h1 ( l3.1 + l3.2 + l3.3 +l3.4) = 3 and so on for every column
And i want the final count for every such value as a summarised table :
title2 h1 h2 h3...
l1 2 2 1
l2 1 0 2
l3 3 4 1
how do i implement this?