I have the below For loop to generate Histograms for 16 values in my dataset but I have no historgam showing. What may I be doing wrong?
For[i = 1, i < 17, i++,
mycnr = StringJoin["CNR", ToString[i]];
cnr[i] = newDataSet[All, mycnr];
Histogram[cnr[i]]]
when I comment out lines 3 and 4 inside for loop to see the outcome of the StringJoin function, I do not see the mycnr simply showing the CNR1 to CNR16 I expect from such StringJoin
I apologize, I am new at Mathematica, so "be gentle" :-)
Printing theHistograms. – Marius Ladegård Meyer Feb 21 '17 at 22:31newDataSet. – Edmund Feb 21 '17 at 22:33Tableinstead ofFor. (and read this.. http://mathematica.stackexchange.com/q/134609/2079) – george2079 Feb 21 '17 at 22:34Datasetas you are missing out on some powerful functionality. Considerds = AssociationThread[{"A1", "A2", "A3"}, #] & /@ RandomInteger[{3, 15}, {20, 3}] // Dataset; dsCharts = ds[Transpose /* Map[Histogram], {"A1", "A2"}]; dsChartsThendsCharts["A1"]– Edmund Feb 21 '17 at 22:47