keep function

Keep or drop variables