Hi Mara, thanks for being patient with me. Following is the output from the clipboard that I Pasted. As I mentioned in my previous comment, this has brought me to a new problem, it does not show the backtick error in the reprex output but shows all hindi characters as ?.
data.frame(PetitionID = c(21321321,231321,546586,666268,63555,33555),
Complaintreceviedvia = c("Internet", "In Person", "Post", "Internet", "Call Center", "Internet"),
Department = c("???????? ?????",
"???????? ?????",
"??????? ??????? ?????",
"??? ?????",
"??? ?????",
"???0???? ??? ???0 ?????? ?????")) -> sam_rep
sam_rep ## if this line is executed the output shows in column 3 (department) as <U+xxxx> format for entries in Hindi, locale is already set to HIndi
#> PetitionID Complaintreceviedvia Department
#> 1 21321321 Internet ???????? ?????
#> 2 231321 In Person ???????? ?????
#> 3 546586 Post ??????? ??????? ?????
#> 4 666268 Internet ??? ?????
#> 5 63555 Call Center ??? ?????
#> 6 33555 Internet ???0???? ??? ???0 ?????? ?????
## i want ro pivot the data sam_rep
library(tidyverse)
sam_rep %>%
spread(Department, Complaintreceviedvia )-> sam_rep_wide
## The sequence problem
### i Want to use the col that is in Hindi, since it has space, it needs to be inside backticks
sam_rep_wide %>%
filter(`??? ?????`== "Internet") ##this genereates the error that \uxxx not supported inside backtick
#> PetitionID ??? ????? ??????? ??????? ????? ???????? ?????
#> 1 666268 Internet <NA> <NA>
#> ???0???? ??? ???0 ?????? ?????
#> 1 <NA>
Created on 2019-11-25 by the reprex package (v0.3.0)
However, if i run the code without using reprex the backtick error does occur and the hindi characters appear as they should in the script, also appears fine if i call the object via reactable, but is displayed in form of <U+xxx> in console. Below are the two images (sorry for posting these as images but I have to in order to describe what I am facing)
1>
2>
Also, more importantly, i just realised that I follow you on twitter and you and batpig are awesome.