Unverified Commit 13d0ceee authored by david-cortes's avatar david-cortes Committed by GitHub
Browse files

[R-package] fix grammar in comments

parent 887ef4cc
...@@ -127,7 +127,7 @@ Dataset <- R6::R6Class( ...@@ -127,7 +127,7 @@ Dataset <- R6::R6Class(
cnames <- colnames(private$raw_data) cnames <- colnames(private$raw_data)
} }
# set feature names if not exist # set feature names if they do not exist
if (is.null(private$colnames) && !is.null(cnames)) { if (is.null(private$colnames) && !is.null(cnames)) {
private$colnames <- as.character(cnames) private$colnames <- as.character(cnames)
} }
...@@ -140,7 +140,7 @@ Dataset <- R6::R6Class( ...@@ -140,7 +140,7 @@ Dataset <- R6::R6Class(
cate_indices <- as.list(match(private$categorical_feature, private$colnames) - 1L) cate_indices <- as.list(match(private$categorical_feature, private$colnames) - 1L)
# Provided indices, but some indices are not existing? # Provided indices, but some indices are missing?
if (sum(is.na(cate_indices)) > 0L) { if (sum(is.na(cate_indices)) > 0L) {
stop( stop(
"lgb.self.get.handle: supplied an unknown feature in categorical_feature: " "lgb.self.get.handle: supplied an unknown feature in categorical_feature: "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment