I am trying do a for loop with an if statement. It didn't work, so I took out the "if" loop. I made it work. That is, the following code
if (data$mis[3] = "mis") {
print ("George Bush")
}
Outputs "Geoge Bush"
However, it also says:
Error: unexpected '}' in "}"
Any idea why that might be?
Aucun commentaire:
Enregistrer un commentaire