filter() function

It looks like it should work. Can you provide a reproducible example of paa_codazzi?