Added a function to trim a data.frame by a given field with various good/bad attributes.