I have a df where the class of a column is factor. However, 80% of its values are numeric/integer/float and the 20% are string "No contact". How can I replace "No contact" with the value 0?.
I understand if I change the class of the column to numeric, it will give me an error (How to convert a data frame column to numeric type?). So, I need to replace the value "No contact" first in order to change the column class.
Thanks !