I want to know how to extract data that i want without using %in%

Your question is a little vague, could you give a concrete example to make it clearer? ideally, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: