We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcd0f98 commit 02eef2aCopy full SHA for 02eef2a
1 file changed
tutorials/training/lendingclub_solutions.R
@@ -51,7 +51,7 @@ loanStats$emp_length <- h2o.trim(loanStats$emp_length)
51
## Use h2o.sub to convert < 1 to 0 years and do the same for 10 + to 10
52
## Hint: Be mindful of spaces between characters
53
loanStats$emp_length <- h2o.sub(x = loanStats$emp_length, pattern = "< 1", replacement = "0")
54
-loanStats$emp_length <- h2o.sub(x = loanStats$emp_length, pattern = "10\\+", replacement = "10")
+loanStats$emp_length <- h2o.sub(x = loanStats$emp_length, pattern = "10+", replacement = "10")
55
loanStats$emp_length <- as.numeric(loanStats$emp_length)
56
57
## Task 6: Create new feature called "credit_length_in_years"
0 commit comments