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;
}

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 ; }
reads in a csv dataset as a regression dataset .
