I work in
macOS Catalina, version 10.15.7
whit
R 4.1.1 GUI 1.77 High Sierra build (7985)
Link the exemplo above, the characters "ç" and "ˆ" doesn't work
names(frutas)<-c("laranja","banana","maça","pêra")
frutas
laranja banana ma\303\247a p\303\252ra
1 2 3 4
And to use lab on the plot the characters doesn't work.
x<- c(1,2,3,4)
x
[1] 1 2 3 4
plot(x, ylab="Açai", xlab="Pêra")
If you perform File | Reoopen with encoding | UTF-8
, then
x<- c(1,2,3,4)
x
#> [1] 1 2 3 4
plot(x, ylab="Açai", xlab="Pêra")
Hi technocrat!
Do you means something like this?
options(encoding="utf-8")
x<-c("é")
x
[1] "\303\251"
This way didn't work properly.
Ps: My hability in R is still in first steps.
This is for use within the RStudio editor; alternatively, you can use a shell script to convert if you are doing multiple. The first part of the dialog is tricky to take a screen shot of the first part of the menu tree, but the final part looks like
system
Closed
December 15, 2021, 12:58am
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.