What is it called when an experimenter discards results that are too unexpected? There is a type of scientific error where an experimenter gets a result significantly different from prior researchers, assumes they made a mistake, and redoes the experiment until they get a more expected value, which they publish. I vaguely remember hearing about this in a Feynman book or video, where he described how correcting the known value of constants took longer than it should have because of this effect.
What is this effect called, and what are some famous examples?
UPDATE
I reworded the question to clarify what I meant by an "unexpected" result. Helpful commenters identified the Feynman anecdote:

*

*Is Feynman's claim about the history of measurements of the charge of the electron after Millikan accurate?

*Timeline of measurements of the electron's charge
The other posts don't include a term for the error.

Another answer has mentioned publication bias. However, that is not really what you were asking about, which is data dredging. A pertinent XKCD illustration is:

