code: function importData(arr, outdivid) {
        $(outdivid).empty(); // flush messages
  
        // find number of datapoints
        N = arr.length;
        var t = [];
        SUCC(outdivid, "found " + N + " data points");
        if(N === 0) { FAIL(outdivid, 'no data points found?'); return; }
        
        // find dimensionality and enforce consistency
        D = arr[0].length;
        for(var i=0;i<N;i++) {
          var d = arr[i].length;
          if(d !== D) { FAIL(outdivid, 'data dimension not constant: line ' + i + ' has ' + d + ' entries.'); return; }
        }
        SUCC(outdivid, "data dimensionality is " + (D-1));
        
        // go through columns of data and figure out what they are
        var colstats = [];
        for(var i=0;i<D;i++) {
          var res = guessColumn(arr, i);
          colstats.push(res);
          if(D > 20 && i>3 && i < D-3) {
            if(i==4) {
              SUCC(outdivid, "..."); // suppress output for too many columns
            }
          } else {
            SUCC(outdivid, "column " + i + " looks " + (res.numeric ? "numeric" : "NOT numeric") + " and has " + res.num + " unique elements");
          }
        }
  
        return {arr: arr, colstats: colstats};
     }
docs: returns arr (csv parse) and colstats, which contains statistics about the columns of the input parsing results will be appended to a div with id outdivid