Creating a "complete" function

This creates the function "complete", which takes the variables
"directory" and "id" and finds only complete rows for these.