fix categorical data bug

This commit is contained in:
benfry
2012-12-19 22:34:47 +00:00
parent 04db01552c
commit 7792e36fde
3 changed files with 6 additions and 2 deletions

View File

@@ -1801,7 +1801,8 @@ public class Table {
public int getInt(int row, int column) {
checkBounds(row, column);
if (columnTypes[column] == INT) {
if (columnTypes[column] == INT ||
columnTypes[column] == CATEGORICAL) {
int[] intData = (int[]) columns[column];
return intData[row];
}