Problem transforming charaters to numeric


In addition to @HanOostdijk comments, you should try and generate a reprex of your question as this is indeed all very confusing.

A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here:

Good luck,