I exported a large database and some data was exported with � since it didn't contain value. The purpose is to calculate the average of each row, however I can't. Also I tried to replace � by NA with
df[ df == "?" ] <- NA
but it didn't work. How can I achieve the average per row with that character? or else how can i replace it with NA?
Thank you.