I have an issue I can't wrap my head around. I have a CSV file with the following columns:
Name Info1 Info2 Value1 Value2 Value3 Value3
From this, using d3.csv, I am trying to create a javascript array that looks like this, for each row in of the data:
[{key: Name,
Info1: Info1,
Info2: Info2,
values: [{
Value1: Value1,
Value2: Value2,
Value3: Value3
}]
}]
Can't really wrap my head around how to do this. Anyone?
Edit: Problem solved. Now, how can I operate on the sub-array of values, for example for each key separately extract the mean?
Edit 2: Never mind, solved that.