title: google script array splitting
body: <p>i got a quick one for someone who can help. I've downloaded some data from yahoo. I want to split the data into a N x 7 array. (is that the correct term?).
  I want it to look like this:</p>
  
  <p>[[2013-01-29,64.25,65.03,64.00,64.24,4883100,64.24],[2013-01-28,64.51,64.87,63.27,64.59,7591300,64.59],...]</p>
  
  <p>but now, as you can see, it's not in that format. Novice to javascript. Please help.</p>
  
  <pre><code>function function() {
  var ticker='YUM';
  var startMonth=0; var startDate=1; var startYear=2013;
  var endMonth=0; var endDate=25; var endYear=2013;
  var fetchString="http://ichart.finance.yahoo.com/table.csv?s="+ticker+"&amp;a="+startMonth+"&amp;b="+startDate+"&amp;c="+startYear+"&amp;d="+endMonth+"e="+endDate+"&amp;f="+endYear+"&amp;g=d";
  var response = UrlFetchApp.fetch(fetchString);
  a=response.getContentText();
  var allData = a.slice(a.indexOf("2013"));
  }
  </code></pre>