Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Data Science by (108k 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.

Browse Categories

...