I am using sqldf to delete three observations like this below.
del_query <- sprintf("DELETE from data_table
where ID_NUMBER IN (%s)",
paste((
'8254700',
'8641472',
'9022163'
), collapse=", "))
sqlQuery(myconn, del_query)
I dont see any error when I execute the query. I dont get the right results either. Its just deleting the first observations where the ID is 8254700, the remaining two observations where ID is either 8641472 or 9022163 is still present. Wonder what I am doing wrong ...I need all the three observations gone...any help is much appreciated folks.