I have a string variable that has "(Null Value)" for cases that are missing data. I want to recode "(Null Value)" to just be missing, and not say "(Null Value)". I'm trying to write a loop to get rid of these (Null Value) entries and I keep getting an error "Error: unexpected '}' in "}"
for (row in data){
if terminate_reason == "(Null Value)"
recode(data$terminate_reason, "(Null Value)" = NA)
}
wtf does R think there's an extra curly bracket in there? PS-I expect I'll get other errors after solving this one because I'm new to R and have no idea what I'm doing, but I can't get past this one.