code: public static RegressionDataSet readR(int numeric_target_column, Path path, char delimiter, int lines_to_skip, char comment, Set<Integer> cat_cols) throws IOException
      {
          BufferedReader br = Files.newBufferedReader(path, Charset.defaultCharset());
          RegressionDataSet ret = readR(numeric_target_column, br, delimiter, lines_to_skip, comment, cat_cols);
          br.close();
          return ret;
      }
docs: Reads in a CSV dataset as a regression dataset.
  
  @param numeric_target_column the column index (starting from zero) of the
  feature that will be the target regression value
  @param path the CSV file to read
  @param delimiter the delimiter to separate columns, usually a comma
  @param lines_to_skip the number of lines to skip when reading in the CSV
  (used to skip header information)
  @param comment the character used to indicate the start of a comment.
  Once this character is reached, anything at and after the character will
  be ignored.
  @param cat_cols a set of the indices to treat as categorical features.
  @return the regression dataset from the given CSV file
  @throws IOException