I have a table which some columns have values of Unknown but in Hebrew ("לא ידוע") where I try to replace those values with NA.
I have seen in other answers uses of functions like:
replace_with_na_a
or:
df [df == "לא ידוע"] <- NA
But none of them succeeded. Is there a way to replace them?
I would like to point out that I did the actions that translate the table into Hebrew:
write.csv(dataset,"D:/Doctorate/Courses/R/data_intro_r_test.csv", row.names = FALSE)
#Read & read the Hebrew in the table
Sys.setlocale("LC_ALL", "Hebrew")
sample.data <- read_csv(file = "data_intro_r_test.csv",
locale = locale(date_names = "he", encoding = "UTF-8"))
line=readLines("D:/Doctorate/Courses/R/data_intro_r_test.csv", encoding = "UTF-8")
iconv(line, "ISO-8859-8", "UTF-8")
Thank you, Maya