I have a computed distance object with dist(data) and I want to be able to remove data corresponding to the wanted element from the distance object in a way that the data re