By redundancy do you mean duplicates? Like a duplicated value? If that's what you mean, then you can try the function unique().
It'd help if you post some sort of example that people here could try and reproduce (aka a reprex). You can read up on that here.