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.

One way of framing this is as publication bias, which occurs when the outcome of an experiment influences the decision of whether or not to publish the result.  This is a well-known form of bias that infects academic research.  I'm not familiar with any "famous" examples, but there are a few works in the medical field that decribe some non-famous examples in Wilmherst (2007).
Examples of publication bias is inherently difficult to detect, since the non-published parts of the example are non-published (and therefore difficult to detect).  Generally speaking, publication bias is detected through statistical analysis of reported metrics in published works.  Consequently, most of the known "examples" of publication bias in academic literature are inferences of publication bias coming solely from the published works.
