I worked with a data frame which contains data in Persian and English. I didn't have any problem with it and I coded properly and It worked well. This time which I open RStudio The Persian fonts in my code have been corrupted but there is no problem whit new codes which I write now and use Persian font. The problem is I need the previous codes which has been corrupted.For example like this:
x <- V[V$P_AgeGroup=="1.Ú©ÙØ¯Ú©",]
view(x)
y1 <- x[x$P=="Ø·ÙØ§Ù Ú¯Ø±ÙØªÙ",]
View(y1)
y2 <- x[x$P=="ÙÙØ³Ø± ÙÙØª شدÙ",]
view(y2)
It is not my real data but To have a reproducible data if needed:
data <- data.frame(A=c("تهران","همدان","ساری","سمنان","یزد"),B=c(129,32,512,409,105))
By the way, I used below code in the first lines of my code.
Sys.setlocale(locale = "Persian")
Any little help would be greatly appreciated.