0 votes
1 view
in Data Science by (81.7k 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 (37.8k points)

This is just a syntax error:

Enclose your 'if' in curly braces.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !