I asked a question that I will summarize simply.
I had a misnamed dataset, not with a typo, but having the incorrect name. It's just like a typo problem, in that if I had reviewed it more carefully, I might have noticed it and not needed to ask the question. Someone provided an answer, it can't be deleted.
The question is of little use to anyone other than seeing the lesson of "check your names before posting" played out one MORE time.
What happened:
I posted the question and within a few minutes, someone was kind enough to assist me. I started attempting their solution when I noticed the error in the names. So I let the user know who answered, that I misnamed the dataset. Then attempted to delete the question, not wanting to waste anyone else's time.
I couldn't delete it, because it had an answer. So I provided another answer, the true answer. Then flagged it for moderator attention.
It was put on hold as off-topic, as it should. I was able to accept my answer now that two days has passed.
I am basically asking, at the risk of wasting more time on the same question, in an attempt to SAVE time in the future. What can be done to avoid this? Assuming the post has been made already. Is there some way to REMOVE these once another user submits an answer? To avoid having to even have a moderator waste time on it?
My thoughts and reasoning: skip from here down if you are not interested.
If I knew what was wrong with my code at all, I wouldn't post the question, I'd just fix that issue and move on. It's the nature of asking questions. You have to be willing to ask at some point. Perhaps while continuing research, or after exhausting your research, and changing tasks.. regardless,
I rarely post questions because I can do the research if I know what I'm looking for. In that specific case, I couldn't find anything else to read on it, and needed people's experience.
If I can't solve a problem, it's either I am ignorant of a function existing that already does what I'm attempting, ignorant of some syntax, unaware of some other factor, or have some little mistake somewhere in the code I'm unaware of. The common factor being that I'm unaware of what is the problem, and have to seek guidance in the chance that it's one of the first 3 options. ie, I can read an error code and get to the bottom of it without help in most cases. Or at least search for functions and read what they do.
In this question, I believed there may have been a limitation of the function or an exception where it couldn't perform what I was attempting. So I risked taking another person's time to help me and asked a question.
I'm already extremely hesitant to post questions on SO for a number of reasons. I just don't want to be MORE hesitant because there is ALWAYS a risk of there being a mistake like this one, especially on inherited code. I value people's time greatly and would rather not risk wasting anyone's time if I couldn't delete a question over something like this, I'd just not post it at all.
For what it's worth, both names were correct in some place on the project, so they looked valid to read them. The project was inherited and passed through many individuals' hands before me, all using different naming protocols. "ins1data" vs "insdata1", both used repeatedly in different contexts. I DID check the names is my point. I checked them repeatedly before posting. AND, within 30 minutes of posting the question I struggled for many hours attempting to solve on my own, it was solved, as an indirect result of the help someone here provided me. So, I'm glad I posted it, but it doesn't belong here and I want to be responsible for that and let no one else have to see it, or any question in the future like it.