See the FAQ: How to do a minimal reproducible example reprex
for beginners. You've described the problem well, but having to reverse engineer a script deters interest.
It only needs to contain so much data as will reproduce the undesired result. It doesn't have to be all of your data, or even your data at all. For example, you could use mtcars
to do a toy example of the lm
modeling chain.