I'm working with the sqldf package in R. I want to create a dataset whose students' ID are excluded from another dataset. My code looks like:
delete <- sqldf("select distinct ID from A where ...")
B<-sqldf("select * from A where ID not in ('select ID from delete')")
After running the code I found B is exactly the same as A. It seems sqldf doesn't recogonize the nested select statement. Any suggestions would be appreciated!