add subsetting by logical and character columns