Skip to content

Commit

Permalink
Uncomment R level code to unblock Nidhi and Tomas
Browse files Browse the repository at this point in the history
This is partial rollback of change in 4b3ef78 commit and it needs to be
fixed.
  • Loading branch information
mmalohlava committed Jul 25, 2014
1 parent 114856b commit 130b13a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/h2o-package/R/Classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -1320,12 +1320,12 @@ function (test, yes, no)
## .h2o.__multop2("ifelse", as.numeric(test), eval(yes), eval(no))
#})
#
#setMethod("levels", "H2OParsedData", function(x) {
# # if(ncol(x) != 1) return(NULL)
# if(ncol(x) != 1) stop("Can only retrieve levels of one column.")
# res = .h2o.__remoteSend(x@h2o, .h2o.__HACK_LEVELS2, source = x@key, max_ncols = .Machine$integer.max)
# res$levels[[1]]
#})
setMethod("levels", "H2OParsedData", function(x) {
# if(ncol(x) != 1) return(NULL)
if(ncol(x) != 1) stop("Can only retrieve levels of one column.")
res = .h2o.__remoteSend(x@h2o, .h2o.__HACK_LEVELS2, source = x@key, max_ncols = .Machine$integer.max)
res$levels[[1]]
})

#----------------------------- Work in Progress -------------------------------#
# TODO: Need to change ... to environment variables and pass to substitute method,
Expand Down

0 comments on commit 130b13a

Please sign in to comment.