Why logical vectors are useful