Skip to content

Commit 02eef2a

Browse files
committed
fix escape character
1 parent fcd0f98 commit 02eef2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tutorials/training/lendingclub_solutions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ loanStats$emp_length <- h2o.trim(loanStats$emp_length)
5151
## Use h2o.sub to convert < 1 to 0 years and do the same for 10 + to 10
5252
## Hint: Be mindful of spaces between characters
5353
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")
54+
loanStats$emp_length <- h2o.sub(x = loanStats$emp_length, pattern = "10+", replacement = "10")
5555
loanStats$emp_length <- as.numeric(loanStats$emp_length)
5656

5757
## Task 6: Create new feature called "credit_length_in_years"

0 commit comments

Comments
 (0)