I am having trouble finding the syntax for replacing a string value in a data frame column with NA in r language. The whole column is made up of 1s and 0s, but because of these 2 string outlier values, the whole column is registering as character rather than numeric. ??I want to convert these outlier strings to NAs, and then the whole column to numeric.
I have downloaded the recode() tool from the package car, but I canât make it work with the character value.
Let me know if anyone can help!