Hello,
Welcome to the forum! You should just be able to simply filter the DatosRS
dataset. It would help if I can see exactly what it is you are working with. Able to make a reprex? (See here: FAQ: How to do a minimal reproducible example ( reprex ) for beginners)