filterVector function

Create filtering vector