syntax for dplyr that seems to do what I want