Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Data Science by (107k points)

I keep getting the following error:

Error: unexpected '}' in "}"

my code:

for (row in data){

  if terminate_reason == "(Null Value)"

    recode(data$terminate_reason, "(Null Value)" = NA)

}

1 Answer

0 votes
by (50.2k points)

This is just a syntax error:

Enclose your 'if' in curly braces.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...